Skip to main content

QUORUM_METADATA_KEY

Constant QUORUM_METADATA_KEY 

Source
pub const QUORUM_METADATA_KEY: &'static str;
Expand description

Where an ApprovalGate with a quorum records who has approved so far.

The key is in the metadata of the status message that carries the pending ApprovalRequest; its value is {"requestId", "digest", "required", "approvedBy": [identity, ...]}. The server writes it and reads it back; a client may read it to show how many approvals are still needed. It is not part of the approval extension’s request or decision, and a client that ignores it misses nothing it needs: each approver sends the same decision they would send without a quorum.