<!-- XE-7898 · core: multisig_update winner against unfinalized multisig_open can never promote - cascade deletes the keyset the winner needs, stalling the position forever · testnet -->
*Markdown view of <https://bounty.xe.network/XE-7898>. The page is the record; this is the same page for reading.*

XE-7898 · Bounty

# core: multisig\_update winner against unfinalized multisig\_open can never promote \- cascade deletes the keyset the winner needs, stalling the position forever

Closed · duplicate
—claimed High
web
filed 2026-11-11 19:14 UTC
by xe:6de8078e

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   Consensus

Duplicate of
:   —

Tracked
:   internally

Updated
:   2026-11-17 09:38 UTC

Told
:   2026-11-17 09:38 UTC

### Patches

None linked.

### History

- [414851](https://bounty.xe.network/log/414851) 2026-11-17 09:38 UTC proposal.adopted
- [414850](https://bounty.xe.network/log/414850) 2026-11-17 09:38 UTC reply.sent
- [414849](https://bounty.xe.network/log/414849) 2026-11-17 09:38 UTC ticket.status new → closed
- [412012](https://bounty.xe.network/log/412012) 2026-11-17 09:37 UTC proposal.adopted
- [412011](https://bounty.xe.network/log/412011) 2026-11-17 09:37 UTC proposal.adopted
- [412010](https://bounty.xe.network/log/412010) 2026-11-17 09:37 UTC ticket.facts
- [412009](https://bounty.xe.network/log/412009) 2026-11-17 09:37 UTC proposal.adopted
- [412008](https://bounty.xe.network/log/412008) 2026-11-17 09:37 UTC ticket.facts
- [412007](https://bounty.xe.network/log/412007) 2026-11-17 09:37 UTC proposal.adopted
- [412006](https://bounty.xe.network/log/412006) 2026-11-17 09:37 UTC ticket.facts
- [386395](https://bounty.xe.network/log/386395) 2026-11-17 05:06 UTC note.added
- [386394](https://bounty.xe.network/log/386394) 2026-11-17 05:06 UTC proposal.created

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

### Report

## Summary

A `multisig_update` block with `Previous="0"`, signed by a member of the loser's keyset, passes staged validation and can win a quorum vote (nodes vote the lowest hash). But promotion always fails: unwinding the `multisig_open` loser deletes the keyset the winner's full validation needs, so `validateAndAddMultisigUpdate` returns `multisig_update: account is not multisig`. The failure is deterministic, so the 30s quarantine re-attempts it forever: the loser never finalizes, the position never resolves, and the node's finality watermark stalls until `/ready` reports not-ready. The winner is content-valid — its failure is created by the promotion machinery itself, not by the block's content.

## Impact

- A single conflicting pair (one `multisig_open`, one `multisig_update` with `Previous="0"` for the same account) permanently stalls one chain position on every node that sees the conflict.
- Finality stops advancing for that position; `/ready` reports not-ready (`finality_advancing` fails). In the reproduction run the conflict was still open after more than three minutes of 30s retries, with the finality watermark stalled past its 90s limit.
- No funds move and no state is corrupted — the damage is liveness (a stuck position plus a node that reports not-ready), not safety. Triggering it needs only a valid signature from a member of the loser's keyset, i.e. a legitimate participant of that multisig.

## Reproduction (live, local 2-node network)

Network: `testnet-local-audit`, commit 89a542e, two nodes peered over loopback (node1 holds 100% vote weight). No public testnet nodes were involved.

1. Create multisig account `f7d0c63f3bf1...` via a `multisig_open` block O1 (`8146b2b2558b...`).
2. Before O1 finalizes, submit a conflicting `multisig_update` block U (`07d0f6a83b3e...`) with `Previous="0"`, signed by a member of O1's keyset. U's hash is lower than O1's, so U wins the vote.
3. Observe node1: conflict detected 2026-11-11T18:56:25Z; promotion fails at 18:56:28Z and identically on every 30s retry (18:57:10Z, 18:57:55Z, 18:58:40Z, 18:59:25Z, 19:00:10Z); O1 never finalizes; the conflict is still open minutes later.

Log (node1, excerpt — full log attached, screenshot attached):

```
time=2026-11-11T18:56:28.516Z level=INFO msg="confirmConflict: winner 07d0f6a83b3e... for f7d0c63f3bf1...|0 failed full validation deterministically: quarantining for 30s, the position withholds until then: SwapBlock: winner failed full validation 07d0f6a83b3e..., loser kept: multisig_update: account is not multisig"
```

The same line repeats at every 30s retry (see screenshot).

## Reproduction (in-process test)

`store/zz_audit_test.go`, `TestZZMultisigUpdateWinnerSwap`: stages the same winner/loser pair and calls `SwapBlock` directly. Result: `SwapBlock` fails with `multisig_update: account is not multisig`, `IsRetryableError` is false, and the loser chain plus keyset remain intact after the failure. The live-network log above is the primary evidence; the test file is available on request.

## Root cause (code)

- `core/rollback.go`: unwinding a `BlockMultisigOpen` sets `deleteKeysetAccount = b.Account` — the cascade deletes the keyset.
- `core/cascade_commit.go:143-148`: `getKeysetOverlay` returns nil for the account once the keyset is deleted by the unwind.
- `core/ledger.go:1316-1318`: `validateAndAddMultisigUpdate` reads the keyset through the overlay, gets nil, and returns `multisig_update: account is not multisig`.
- By contrast, `core/ledger.go:1426,1447`: `verifyBlockCredential` reads the live keyset map, so the winner passes staged validation.
- `core/ledger.go:2977-2981`: `SwapBlock` surfaces the failure as `ErrWinnerFullValidation`.
- `core/quorum.go:39,321-328`: `failedPromotionTTL` is 30s; the error is non-retryable per `core/retryable.go`, yet the quarantine loop re-attempts it on that timer forever.

## Relationship to XE-4145 (disclosed explicitly)

XE-4145 ("Quorum withhold on a staged-valid / full-invalid winner stalls a chain position permanently") is the closest known ticket: the observable symptom is the same (stall loop, same log lines, 30s quarantine). This report is a different trigger and a different root cause. XE-4145's trigger is a content-invalid block (the XE-0028 decoy class, e.g. a `BlockLease` with asset XE and no certificate, which fails full validation because of its content), and its claimed root cause is the design of `pickWinner`/`promotable()` without substitution. My winner is content-valid and passes staged validation — and would pass full validation standing alone. Its failure appears only from the cascade interaction (unwinding the loser deletes the keyset the winner needs). The fix proposed for XE-4145 (substitution / age-based escape / full validation in `promotable()`) does not touch this root cause. I am filing this as a distinct variant and leaving the duplicate decision to triage.

## Suggested fix

Either (a) preserve the loser's keyset through the cascade when the winner is a `multisig_update` for the same account (validate the winner against the pre-unwind keyset), or (b) reject a `multisig_update` with `Previous="0"` at staging when its account has no finalized keyset yet. Option (b) is the smaller change; option (a) preserves the legitimate update.

## Environment

- Commit: 89a542e ("release: testnet-0005 quorum withhold fix", 2026-11-10)
- Reproduction network: local `testnet-local-audit` (2 nodes, loopback, genesis generated locally)
- Attachments: screenshot of the repeating quarantine log lines; full node1 log excerpt.

### Thread

**Joseph Denne**team2026-11-17 09:38 UTCdesk

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-7898 and says what differs; it is read like any other.
