<!-- XE-5132 · Account chain accepts receive blocks with identical timestamps (validation gap) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-5132>. The page is the record; this is the same page for reading.*

XE-5132 · Bounty

# Account chain accepts receive blocks with identical timestamps (validation gap)

Closed · invalid
—claimed Medium
web
filed 2026-11-11 07:44 UTC
by xe:045b40a6

Verdict
:   Invalid

Tier
:   —

Claimed
:   Medium

Area
:   Leasing / ledger

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-15 17:58 UTC

Told
:   2026-11-15 17:58 UTC

### Patches

None linked.

### History

- [284625](https://bounty.xe.network/log/284625) 2026-11-15 17:58 UTC reply.sent
- [284353](https://bounty.xe.network/log/284353) 2026-11-15 17:42 UTC proposal.adopted
- [284144](https://bounty.xe.network/log/284144) 2026-11-15 17:42 UTC proposal.adopted
- [284143](https://bounty.xe.network/log/284143) 2026-11-15 17:42 UTC ticket.status new → closed
- [283459](https://bounty.xe.network/log/283459) 2026-11-15 17:42 UTC proposal.adopted
- [283458](https://bounty.xe.network/log/283458) 2026-11-15 17:42 UTC ticket.facts area
- [283457](https://bounty.xe.network/log/283457) 2026-11-15 17:42 UTC proposal.adopted
- [283456](https://bounty.xe.network/log/283456) 2026-11-15 17:42 UTC ticket.facts
- [280797](https://bounty.xe.network/log/280797) 2026-11-15 16:13 UTC note.added
- [280796](https://bounty.xe.network/log/280796) 2026-11-15 16:13 UTC proposal.created
- [280795](https://bounty.xe.network/log/280795) 2026-11-15 16:13 UTC proposal.created
- [280794](https://bounty.xe.network/log/280794) 2026-11-15 16:13 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-5132) · [JSON](https://bounty.xe.network/v1/tickets/XE-5132) · [markdown](https://bounty.xe.network/XE-5132.md)

### Report

SUMMARY
The block-lattice validator rejects a receive block whose timestamp is strictly BEFORE the frontier block timestamp (core/ledger.go, validateAndAddReceive: `if b.Timestamp < lastTs { reject }`), but ACCEPTS a block whose timestamp is EXACTLY EQUAL to the frontier timestamp. Consecutive blocks in one account chain can therefore carry identical nanosecond timestamps.

IMPACT
Two or more blocks in the same account chain share an identical timestamp. Any protocol logic that orders or attests account-chain events by timestamp (timekeeper attestations, lease settlement windows, conflict resolution, audit/replay tooling) encounters ambiguous ordering. Verified live on testnet-0005.

PROOF OF CONCEPT (runnable)

1. Build a custom signer with github.com/xeprotocol/xe/core:
   kp :\= core.KeyPairFromPhrase(phrase, "", 0); core.SetNetworkID("testnet-0005")
2. Craft: Block{Type: BlockReceive, Account: kp.Address(), Previous: \<current frontier hash\>, Balance: \<old balance \+ amount\>, Timestamp: \<frontier timestamp EXACTLY, not now\>, Asset: "XE", Source: \<pending send hash\>, Amount: \<send amount\>}
3. core.SignBlock(b, kp); then b.PoWNonce \= core.ComputePoW(hashBytes, core.DefaultDifficulty)
4. POST the JSON block to https://ldn.core.test.network/blocks/receive -\> HTTP 201, accepted.

ON-CHAIN EVIDENCE (testnet-0005, live):

- Account: 86a16fc8e0b9c9a76a03439dce7b06f259c3dc686a130c1dbeac0ca4219d5e6b
- Block 1: hash 788a92bd0e58042b4da50feefd3ad52a25567f495f8edc1f6bb465029d822092, timestamp 1794382652604712053
- Block 2: hash 456678d31f6f7aabb1cd30da223180a907c9db80fc50e0b4724cd152f9ab0d70, timestamp 1794382652604712053 (IDENTICAL to block 1\)
- Both visible: GET https://ldn.core.test.network/accounts/86a16fc8e0b9c9a76a03439dce7b06f259c3dc686a130c1dbeac0ca4219d5e6b/chain

SUGGESTED FIX
Enforce strictly monotonic timestamps: change `b.Timestamp < lastTs` to `b.Timestamp <= lastTs` in validateAndAddReceive and analogous checks in other block-type validators.

### Thread

**XE desk**team2026-11-15 17:58 UTCdesk

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links
https://bounty.xe.network/XE-5132 and says what; it is read like any other.
