<!-- XE-13386 · [Bug Bounty] Conflict resolution deadlocks when the lowest-hash sibling block is missing: 5 accounts stuck 2–4 days · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13386>. The page is the record; this is the same page for reading.*

XE-13386 · Bounty

# \[Bug Bounty\] Conflict resolution deadlocks when the lowest-hash sibling block is missing: 5 accounts stuck 2–4 days

Closed · duplicate
—claimed Medium
[xe#545](https://github.com/xeprotocol/xe/issues/545)
filed 2026-11-13 08:07 UTC
by abangdwie

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Consensus

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 13:01 UTC

Told
:   2026-11-20 13:00 UTC

### Patches

None linked.

### History

- [599239](https://bounty.xe.network/log/599239) 2026-11-20 13:01 UTC github.state\_pushed
- [599238](https://bounty.xe.network/log/599238) 2026-11-20 13:01 UTC github.labels
- [599217](https://bounty.xe.network/log/599217) 2026-11-20 13:00 UTC reply.mirrored
- [598860](https://bounty.xe.network/log/598860) 2026-11-20 13:00 UTC proposal.adopted
- [598859](https://bounty.xe.network/log/598859) 2026-11-20 13:00 UTC reply.sent
- [598858](https://bounty.xe.network/log/598858) 2026-11-20 13:00 UTC ticket.status new → closed
- [596780](https://bounty.xe.network/log/596780) 2026-11-20 12:59 UTC proposal.adopted
- [596779](https://bounty.xe.network/log/596779) 2026-11-20 12:59 UTC ticket.facts area
- [596778](https://bounty.xe.network/log/596778) 2026-11-20 12:59 UTC proposal.adopted
- [596777](https://bounty.xe.network/log/596777) 2026-11-20 12:59 UTC ticket.facts
- [596776](https://bounty.xe.network/log/596776) 2026-11-20 12:59 UTC proposal.adopted
- [596775](https://bounty.xe.network/log/596775) 2026-11-20 12:59 UTC ticket.facts

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

### 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 is `pref := lowestHash(eligible)`. Then `prefBlock := 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.
- `gatherCandidates` collects 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 if `GetBlockOrStaged(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, so `confirmConflict` can 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)

1. `GET /conflicts` on ldn: 5 open conflicts, detected 2026-11-09 and 2026-11-11, still open. ffm and nyc show the same 4 conflicts (ldn additionally holds `46635bb7…`). 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 (lowest `120e2abe…`).
   - `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.)
2. The affected accounts have not advanced: chain head of `46635bb7…` is the present sibling `898a8691…` (3 blocks, head time 1794223582) — no blocks after it in 4 days.
3. Voting power is concentrated in one representative: `GET /delegation` — 20 representatives, total weight 41,150,636,105,900 micro-XE; representative `a06e32c72e3b744e…` 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

**abangdwie**2026-11-13 09:32 UTCgithub

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): `31310f181bcf` FOUND (send, XE, 1), `2aca82f5243e` MISSING (lowest), `846688a84d44` MISSING.
- `6df8ad6b1525` (detected 2026-11-13 08:54 UTC): `3ca982b02d23` FOUND (send, XE, 1), `043d2130e0b8` MISSING (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.

**Joseph Denne**team2026-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-13386 and says what differs; it is read like any other.
