[Bug Bounty] Conflict resolution deadlocks when the lowest-hash sibling block is missing: 5 accounts stuck 2–4 days
Report
Suggested tier: Medium
Summary
When an account produces two sibling blocks for the same previous hash (a fork, e.g. a wallet retry or client bug), the network must pick one winner by representative vote. The vote rule is a deterministic lowest-hash tiebreak — but if the lowest-hash sibling block is not held by the voting node, the representative casts no vote at all, and there is no fallback to the next-lowest held block. Votes for a block a node does not hold also count for zero weight in the tally. The result: the conflict can never resolve, and the account is stuck indefinitely. Five real accounts have been in this state for 2–4 days.
Mechanism (public source: github.com/xeprotocol/xe @ 89a542e)
VoteManager.castVoteLocked(core/finalization.go): the representative's preference ispref := lowestHash(eligible). ThenprefBlock := ledger.GetBlockOrStaged(pref); if prefBlock == nil { return }— if the lowest-hash block is not held locally (not on-chain, not staged), the representative returns without voting. It does not fall back to the next-lowest held block.gatherCandidatescollects seed hashes + existing votes + conflict-record hashes — it does not fetch missing blocks from peers.QuorumManager.finalTally(core/quorum.go): only FINAL votes count toward weight, and only ifGetBlockOrStaged(v.BlockHash) != nil— a vote for a block the node does not hold contributes zero weight on that node.promotable: a hash is promotable only if already on-chain at the right height, or staged + validates. A missing block is never promotable, soconfirmConflictcan never promote it. There is no timeout, no fallback, and no recovery path in the code.- Note: the stale-conflict re-tally (
staleConflictAge= 10 s,Retally) re-checks votes, but it cannot create votes that were never cast.
Evidence (live, 2026-11-13 ~15:00 WIB, testnet-0005)
GET /conflictson ldn: 5 open conflicts, detected 2026-11-09 and 2026-11-11, still open. ffm and nyc show the same 4 conflicts (ldn additionally holds46635bb7…). In every conflict, the LOWEST hash is the block MISSING from the node, while the other sibling(s) are present:46635bb7…(9 Nov):898a8691…FOUND (send, XE, 90000),5e2a4311…MISSING (lowest).a438e930…(11 Nov):b8d2799d…FOUND (send, XE, 100),4fccb2e7…MISSING (lowest).b5996072…(11 Nov):f35c84c5…FOUND (send, XE, 10000),0ce905d5…MISSING (lowest).b8a5a88c…(11 Nov):201bd9cc…FOUND (send, XE, 1), 3 others MISSING (lowest120e2abe…).e4ed7b83…(9 Nov):01066172…FOUND (send, XE, 10000),00a007f5…MISSING (lowest). (GET /blocks/<hash>returns the block for the FOUND hashes and{"error": "block not found"}for the MISSING ones.)
- The affected accounts have not advanced: chain head of
46635bb7…is the present sibling898a8691…(3 blocks, head time 1794223582) — no blocks after it in 4 days. - Voting power is concentrated in one representative:
GET /delegation— 20 representatives, total weight 41,150,636,105,900 micro-XE; representativea06e32c72e3b744e…holds 41,150,601,198,405 = 99.9999%.GET /ready(ldn):active_representatives: 1,quorum_reachable: margin 0.330 above the 67% threshold, 1/20 representatives voting,conflicts_open: 5. Finality itself is advancing (watermark advanced 9s ago,finality_advances: 1360) — the stall is specific to conflict resolution, not general finality.
Impact
Any account that double-signs two sibling blocks (wallet retry, client bug) where the lowest-hash sibling is not widely propagated freezes permanently: no representative can vote for the position, and even a vote for the missing block counts for zero on nodes that lack it. There is no timeout or recovery. Limitation, stated plainly: this is self-inflicted only — only the account owner can sign their own blocks, so nobody can freeze someone else's account this way. Hence Medium, not higher.
Reproduction
curl -s https://ldn.core.test.network/conflicts | python3 -c "import json,sys; [print(c['account_address'][:12], c['detected_at'][:10], c['block_hashes']) for c in json.load(sys.stdin)]"
# for each hash in a conflict:
curl -s https://ldn.core.test.network/blocks/<hash> # FOUND returns the block; MISSING returns {"error": "block not found"}
curl -s https://ldn.core.test.network/delegation | python3 -c "import json,sys; d=json.load(sys.stdin); print(sorted(d['weights'].items(), key=lambda x:-x[1])[:2])"
curl -s https://ldn.core.test.network/ready | python3 -c "import json,sys; d=json.load(sys.stdin); print(d['active_representatives'], d['conflicts_open'])"
XE address for the reward
d9724eecb2a4fb22f353637b05abfe6a831c0a12713d7c5a5c8d046dbc1f93a7
Thread
Update (2026-11-13 ~16:24 WIB): two more conflicts appeared today following the exact same pattern — the lowest hash is the missing block in both:
14d39de6422c(detected 2026-11-13 08:51 UTC):31310f181bcfFOUND (send, XE, 1),2aca82f5243eMISSING (lowest),846688a84d44MISSING.6df8ad6b1525(detected 2026-11-13 08:54 UTC):3ca982b02d23FOUND (send, XE, 1),043d2130e0b8MISSING (lowest). Open conflicts on ldn are now 7 (was 5 when this issue was filed); unfinalized positions 10 (was 9). Active representatives still 1. The deadlock is still growing — new accounts keep freezing the same way.
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-13386 and says what differs; it is read like any other.