Skip to content

Drive sends Tenderdash a quorum without member public keys although Core has them; the validator is dead for the quorum term #6339

Backlog

Description

@lklimek

TL;DR: On some evonodes, Drive gives Tenderdash a quorum's validator set with every member's public key missing, even though Dash Core on that node has all the keys. For that quorum's whole term the node cannot verify any proposal or vote. It is effectively a dead validator, and its own proposer turns cost about 60 s each. If enough validators of one quorum are hit at once, the chain halts.

User story

As a Dash Platform evonode operator, I want my node to take part in every quorum it belongs to, so the chain stays live and my node does its share of the work.

Expected Behavior

When a validator quorum becomes active, Drive sends Tenderdash the quorum members together with their public-key shares, as Core reports them, on every member node.

Current Behavior

On some (node, quorum) pairs, Drive sends the quorum with all member keys nil. Tenderdash logs the install as Validator{0A3213 <nil>} Validator{214FEB <nil>} … for all 12 members. At the same moment, the same quorum on a healthy node arrives with all 12 PubKeyBLS12381{…}.

For the quorum's term, the affected node:

  • rejects every proposal: rejected peer message error="error unable to verify proposal";
  • rejects its own proposal: rejected message this node produced error="error unable to verify proposal". Nothing is gossiped, so the height needs round 1, about 60 s later;
  • cannot collect votes.

The pattern is stable per (node, quorum) pair. Every time that quorum becomes active again, the same node gets it without keys again.

Core on the affected node is fine. At the time of the failure, quorum info 107 <hash> false on the affected node (v03) and on a healthy node (v01) returned identical output: 12 members, all valid: true, the same pubKeyShare for every member, and the same quorumPublicKey. So the keys exist in the node's own Core, but its Drive did not pass them on.

Evidence (devnet, 13 evonodes, 2026-11-26)

Environment: Drive / dashmate 5.1.0-rc.1, Tenderdash 2.0.0-dev.3, Dash Core 24.0.3, LLMQ type 107 with 12 members, arm64. All Tenderdash nodes ran at TRACE during the last capture.

Node Quorum (hash prefix) Heights where its own turn failed
v02 3D372280 97
v13 773F4BAD 530, 577
v02 7A8DD251 1640, 1687
v02 2E150BAF, 21982FA2, 44A9C145 several, incl. 1969
v07 6E98FEF2 2197, 2244, 2291
v03 15573EAF 2307, 2354

That is at least 18 lost rounds in about 7 hours. Captured case, h2354:

  • At 16:13:40Z and again at 16:18:34Z, v03 installed quorum 15573EAF813B196B4FF24AF3822D6D3DD6328E0A48A58A352862240A15865A0C with all 12 keys <nil>. v03 is a member of that quorum.
  • At 16:19:14.142Z: WARN rejected message this node produced error="error unable to verify proposal" height=2354 … proposal_round=0.
  • Round 1 was committed by another validator at 16:20:14.836Z.
  • During h2300–2310 and h2347–2353, v03 logged DEBUG rejected peer message error="error unable to verify proposal" for every proposal. The other 12 nodes accepted those proposals.

All-nil installs on the single validator left out of a quorum are expected and were excluded.

Possible Solution

The deployed code (v5.1.0-rc.1, fd2565020) looks like it keeps a quorum's first, incomplete view forever:

  1. update_quorum_info calls quorum info only for quorum hashes not already in validator_sets(). Known quorums are never fetched again: update_quorum_info/v0/mod.rs#L143-L160.
  2. A valid member whose pubKeyShare is missing is stored with public_key = None: validator_set/v0/mod.rs#L247-L272.
  3. That stored set is what later reaches Tenderdash as ValidatorUpdate.pub_key = None: validator_set/v0/mod.rs#L170-L179 and block_end/validator_set_update/v2/mod.rs#L154-L170.

Core's quorum info omits pubKeyShare while it does not yet have the quorum's verification vector (RPC docs: pubKeyShare is optional). The likely sequence:

  1. Drive first sees the quorum before Core on that node has the vector.
  2. Drive stores the set without keys.
  3. Core gets the vector later.
  4. Drive never asks again, so the node keeps getting the keyless set whenever that quorum is active.

We could not capture the original first fetch, so step 1 is inferred. Steps 2–4 match the code and the logs.

Suggested direction:

  • Treat a stored quorum that is missing member pubKeyShares as incomplete, and fetch it again (with backoff) until the shares are present. For the node's own quorums, at least on the next block before the quorum becomes active.
  • Keep membership, the threshold key and voting power authoritative.

Steps to Reproduce

Not deterministic. It needs a quorum whose verification vector reaches the local Core after Drive first imports the quorum. On the devnet it hit 4 of 13 nodes across 8 quorums in a few hours. To check a running network: grep Tenderdash logs for an Updating validators line where a member node's own quorum shows <nil> keys, then compare with quorum info 107 <hash> false on the same node.

Context

  • Tenderdash half: the node did not recover even when it later got the keys for the same quorum. That is fixed in fix(state): let validators recover quorum public keys after a key-less update tenderdash#1656 (2.0.1), which also adds an ERROR log and the gauge consensus_validator_missing_quorum_keys for this state. That fix helps only once Drive actually sends the keys, so this Drive fix is the root fix.
  • The same Tenderdash code exists in v1.8.2, so this is likely present on current networks too, wherever Drive's first fetch of a quorum lacks the shares.
  • Drive TRACE logs for a fresh occurrence are being collected; we will add them to this issue.

Your Environment

  • Version used: Drive / dashmate 5.1.0-rc.1 (fd2565020), Tenderdash 2.0.0-dev.3 (831bbeaf6), Dash Core 24.0.3
  • Environment: 13-evonode devnet (arm64, Ubuntu 24.04), LLMQ type 107

🤖 Co-authored by Claudius the Magnificent AI Agent

Activity

  1. added
    bug
    on Nov 26, 2026
  2. Claudius-Maginificent commented on Nov 26, 2026

    @Claudius-Maginificent
    Collaborator

    Update: Drive-side evidence. Drive now runs with a trace-level JSON file log on all 13 evonodes of the same devnet (Drive 5.1.0-rc.1, Tenderdash 2.0.0-dev.3). The keyless validator set is built inside Drive, on the first fetch of a new quorum.

    Captures after enabling Drive TRACE (6 stalled heights, 3 quorums). In each case the healthy node v01 built the same set at the same height, 12–70 ms apart:

    Quorum (Tenderdash / Drive byte order) Affected node Drive add new validator set, affected Same set on v01
    2B195ACB… / 36890538… v03 17:25:29.401Z, 12 × public_key: None 17:25:29.331Z, 12 × Some
    689EEC41… / eae05e50… v07 18:05:34.534Z, 12 × None 18:05:34.509Z, 12 × Some
    2B9F437B… / a47a866b… v07 18:29:37.365Z, 12 × None 18:29:37.353Z, 12 × Some

    Sequence on the affected node for 689EEC41, block proposal at height 3506 (Core chain lock height 7547). v01 shows the same sequence with keys:

    18:05:34.532732Z DEBUG update_quorum_info::v0  update quorum info from 7546 to 7547
    18:05:34.532754Z DEBUG dashcore_rpc            JSON-RPC request: quorum
    18:05:34.533793Z DEBUG dashcore_rpc            JSON-RPC request: quorum
    18:05:34.534880Z TRACE update_quorum_info::v0  add new validator set eae05e504a68c7d3f2618f1db6042c3bbaa2a9fce22362dedb301a3e41ec9e68 with quorum type llmq_devnet_platform   (12 members, all public_key: None)
    

    Tenderdash then installs exactly that set ("Updating validators", every key <nil>) and rejects every proposal for that quorum, including its own.

    What this adds to the issue:

    1. The nil keys originate in Drive's update_quorum_info, not in Tenderdash.
    2. A Drive restart does not prevent it. drive_abci on v03 and v07 had been recreated at 17:22:42Z with empty process caches, and all three quorums were first fetched after that. So it is not stale persisted state.
    3. The fetch happens in the block that first references the quorum's Core height. At that moment the affected node's Core apparently returns the quorum without member pubKeyShare. Minutes later, quorum info 107 <hash> false on the same node returns all 12 shares, identical to healthy nodes. Drive's trace does not log the Core response body, so this step is inferred, not observed.
    4. Drive never refetches. Once a set is stored, update_quorum_info asks Core only for quorum hashes not already in validator_sets(), so the keyless set stays for the quorum's whole lifetime. That turns a transient Core state into a dead validator for the full quorum term.
    5. The same nodes repeat. v02, v03, v07 and v13 in the earlier captures, and v03 and v07 here. That fits a per-node Core timing condition, for example the quorum verification vector not yet processed when the chain lock arrives, rather than chance.

    Suggested handling in Drive: treat a valid member without pubKeyShare as "quorum not ready", not as a member without a key. Either skip storing the set and retry on the next block, or store it and refresh the keys until they are present. A Core-side trace (-debug=llmq) at quorum activation would confirm point 3. We can capture one on request.

    Tenderdash side: dashpay/tenderdash#1656 lets Tenderdash accept the keys when a later update of the same quorum carries them. It also logs an error and exposes a metric while a quorum has no member keys. It cannot help while Drive keeps sending the keyless set.

    🤖 Co-authored by Claudius the Magnificent AI Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions