Skip to content

dash-spv: store the verified part of a QRInfo's current cycle #1390

Open

Description

@PastaPastaPasta

MasternodeListEngine::feed_qr_info stores the current cycle's active set only when every quorum of it is Verified, while the previous-cycle path stores the verified quorums and leaves the rest out. A current-cycle quorum whose quarter lists the QRInfo does not serve, such as a straggler from an older cycle (the regtest H=597 qrinfo fixture has one), leaves the whole cycle unstored, so IS locks signed by its other quorums stay pending until a QRInfo verifies all of them.

Storing the verified quorums, as the previous-cycle path does, would let those locks verify. It changes what QRInfoFeedResult::stored_cycle_height reports, which the masternode sync manager reads to mark a cycle validated, so the sync manager rule needs to change with it.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions