Bounty
XE-13394 · Bounty

[High] Gossip.Subscribe silently drops every multisig block that blockValidator accepts and relays

Closed · duplicate —claimed High xe#552 filed 2026-11-14 07:15 UTC by syhrii

Report

Summary

Validator and subscriber disagree on what a valid block looks like. blockValidator accepts a block when len(b.Signature) == 128 || len(b.Signatures) > 0 (net/gossip_validate.go:79), but Gossip.Subscribe drops anything with len(b.Signature) != 128 (net/gossip.go:150). Multisig blocks carry no single Signature by construction, so the mesh relays them while no node ever ingests one from gossip.

Location

  • net/gossip.go:150 vs net/gossip_validate.go:79-81, commit 89a542e (testnet-0005).
// net/gossip.go:150
if len(b.Hash) != 64 || len(b.Signature) != 128 || len(b.Account) != 64 { continue }
// net/gossip_validate.go:79
if len(b.Signature) != 128 && len(b.Signatures) == 0 {
	return pubsub.ValidationReject
}

Why multisig blocks have no single Signature: core/crypto.go:158 (VerifyBlock returns early when len(b.Signatures) > 0); core/crypto.go:120 (multisig blocks must not declare a pub_key); the ledger verifies them via VerifyMultisig / VerifyMultisigAny on b.Signatures (core/ledger.go:1436,1441).

Impact

An entire account class (multisig accounts — the high-value accounts) loses gossip propagation entirely. Their blocks, including conflicting/forked blocks, only arrive via periodic /xe/sync/1.0.0 pulls, so block delivery, conflict detection, and vote-pull/finality for those accounts are delayed to the sync cadence instead of gossip speed. No crash and no ledger corruption — the blocks are valid and eventually sync.

Reproduction

In a copy of the repo, a live-pubsub test: a multisig block (Signature: "", one Signatures entry, correct HashBlock hash) returns ValidationAccept from blockValidator, yet published on a real local gossipsub topic it never arrives on Gossip.Subscribe within 3s, while an otherwise identical single-sig control block published immediately after is delivered.

Suggested fix

In Gossip.Subscribe, accept blocks with len(b.Signatures) > 0 (mirror the validator's condition) — i.e. drop only when len(b.Signature) != 128 && len(b.Signatures) == 0.

Severity

High. Systematic loss of gossip propagation for a whole account class, degrading conflict detection and finality for high-value accounts. No corruption or fund loss, so not Severe.

Dedup check

Checked against the bounty board (visible tickets) — no match for Subscribe / multisig gossip. Closest: XE-5926 / XE-2614 / XE-3058 / XE-3274 (multisig signature-threshold bypasses — about how many signatures a multisig block needs at ledger admission, not gossip intake). XE-6370 (no block dedup — opposite direction: over-delivery of valid blocks vs. systematic drop of a block class).

Thread

Joseph Denneteam2026-11-20 14:44 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-13394 and says what differs; it is read like any other.