XE-13383 · Bounty
[Core] Cross-block transitions accept timestamps predating causal predecessors across live and staged ledger validation
Report
Summary
Cross-block transitions in core/ledger.go and core/lease_renew.go validate per-account sequential timestamps (b.Timestamp >= prev.Timestamp), but do not enforce causal predecessor timestamp monotonicity across accounts or active lease state in either direct ledger addition (validateAndAdd*) or staged conflict evaluation (ValidateStagedBlock).
Impact & Affected Transitions
BlockReceive(validateAndAddReceive/ValidateStagedBlock): An account can record areceiveblock withb.Timestamp < src.Timestamp(sendblock timestamp), violating cross-account causal ordering.BlockLeaseAccept&BlockLeaseCancel: Can recordb.Timestamp < leaseBlock.Timestamp.BlockLeaseRenew: Can recordb.Timestamp < max(lease.StartTime, leaseBlock.Timestamp, renewals); additionally,ValidateStagedBlockpreviously omittedBlockLeaseRenewbalance and causal validation.BlockLeaseSettle&BlockLeaseForceSettle: Enforce wall-clock / expiry bounds againstStartTime+ duration, but ifleaseBlock.Timestampor a renewal timestamp exceeds those values, transitions could still carry timestamps predating their causal predecessor.
Rule-First Fix
- Rule: Any block referencing or transitioning a causal predecessor (via
b.Sourceor active lease state) must carryb.Timestamp >= predecessor.Timestampacross both direct addition (validateAndAdd*) and staged conflict evaluation (ValidateStagedBlock). - Verification:
go test -count=1 ./...andgo vet ./...pass with 6 unit tests covering live and staged causal rejection across all 6 block transitions.
Thread
Khanhtnq2026-11-13 06:29 UTCgithub
Fix PR submitted in #541.
Joseph Denneteam2026-11-20 13:00 UTCgithub
Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-13383 and says what differs; it is read like any other.