<!-- XE-10242 · Consensus Vote Stalling: enqueueVote updates dedup cache before channel push dropping retransmissions of full-buffer votes · testnet -->
*Markdown view of <https://bounty.xe.network/XE-10242>. The page is the record; this is the same page for reading.*

XE-10242 · Bounty

# Consensus Vote Stalling: enqueueVote updates dedup cache before channel push dropping retransmissions of full-buffer votes

Closed · duplicate
—
web
filed 2026-11-12 11:10 UTC
by xe:e4cd6974

Verdict
:   Duplicate

Tier
:   —

Claimed
:   —

Area
:   P2P / sync

Duplicate of
:   [XE-0024](https://bounty.xe.network/XE-0024) accepted

Tracked
:   internally

Updated
:   2026-11-20 00:33 UTC

Told
:   2026-11-20 00:33 UTC

### Patches

None linked.

### History

- [552325](https://bounty.xe.network/log/552325) 2026-11-20 00:33 UTC proposal.adopted
- [552324](https://bounty.xe.network/log/552324) 2026-11-20 00:33 UTC reply.sent
- [552323](https://bounty.xe.network/log/552323) 2026-11-20 00:33 UTC ticket.status new → closed
- [551685](https://bounty.xe.network/log/551685) 2026-11-20 00:33 UTC proposal.adopted
- [551684](https://bounty.xe.network/log/551684) 2026-11-20 00:33 UTC ticket.facts area
- [551683](https://bounty.xe.network/log/551683) 2026-11-20 00:33 UTC proposal.adopted
- [551682](https://bounty.xe.network/log/551682) 2026-11-20 00:33 UTC ticket.facts
- [551681](https://bounty.xe.network/log/551681) 2026-11-20 00:33 UTC proposal.adopted
- [551680](https://bounty.xe.network/log/551680) 2026-11-20 00:33 UTC ticket.facts
- [551679](https://bounty.xe.network/log/551679) 2026-11-20 00:33 UTC proposal.adopted
- [551678](https://bounty.xe.network/log/551678) 2026-11-20 00:33 UTC ticket.facts
- [551364](https://bounty.xe.network/log/551364) 2026-11-20 00:32 UTC note.added

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

### Report

## Vulnerability Summary

In `net/gossip.go:244-280`, `enqueueVote` receives validated consensus votes from the P2P gossipsub topic and enqueues them into the vote channel `ch`:

```
func enqueueVote(ctx context.Context, ch chan<- *core.Vote, seen map[string]int64, v *core.Vote, now int64) bool {
	finalByte := "c"
	if v.Final {
		finalByte = "f"
	}
	key := v.RepPubKey + "|" + v.ConflictAccount + "|" + v.ConflictPrev + "|" + v.BlockHash + "|" + finalByte
	if ts, ok := seen[key]; ok && now-ts < voteDedupTTL {
		return false
	}
	seen[key] = now

	if len(seen) > 4096 {
		for k, ts := range seen {
			if now-ts >= voteDedupTTL {
				delete(seen, k)
			}
		}
	}

	if v.Final {
		select {
		case ch <- v:
			return true
		case <-ctx.Done():
			return false
		}
	}

	select {
	case ch <- v:
		return true
	default:
		logging.Warnf("gossip: vote channel full, dropping CONVERGE vote from %s", shortHash(v.RepPubKey))
		return false
	}
}
```

Critical ordering bug in deduplication logic:

1. Premature Cache Mutation: `seen[key] = now` is updated *before* verifying that the vote can actually be delivered to the channel `ch`.
2. Drop on Channel Congestion: For non-final `CONVERGE` votes, if `ch` is temporarily full (capacity 1024 saturated by high-volume elections), execution falls into `default:`. The vote is dropped and never processed by `VoteManager`.
3. Retransmission Suppression: Because `seen[key]` was already marked with timestamp `now`, any subsequent retransmission of the same vote received from another P2P peer within `voteDedupTTL = 200ms` hits:
   `if ts, ok := seen[key]; ok && now-ts < voteDedupTTL { return false }`
   The retransmitted vote is falsely rejected as a duplicate, even though the original was never enqueued or processed.

## Impact \& Severity

1. Consensus Retally Stall: Converge votes from major representatives are dropped and blocked from retransmission, preventing quorum elections from reaching threshold tallies.
2. Artificial Conflict Prolongation: Elections remain open until representative revote timers elapse, increasing transaction settlement latency across active conflicts.

## Proposed Remediation

In `enqueueVote`, only update `seen[key]` after confirming that the vote was successfully sent to `ch`:

```
	select {
	case ch <- v:
		seen[key] = now
		return true
	default:
		logging.Warnf("gossip: vote channel full, dropping CONVERGE vote from %s", shortHash(v.RepPubKey))
		return false
	}
```

### Thread

**Joseph Denne**team2026-11-20 00:33 UTCdesk

Thanks. This is the same finding as https://bounty.xe.network/XE-0024, 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-10242 and says what differs; it is read like any other.
