Skip to main content

derive_status

Function derive_status 

Source
pub fn derive_status(
    proposal: &GuardianshipProposal,
    votes: &[GuardianshipVote],
) -> ProposalStatus
Expand description

Derive the status of a proposal from its votes.

Replay-safe: only the latest vote per guardian counts (by voted_unix, later-seen wins on tie), so duplicated or reordered co-signatures converge to the same result. A guardian’s latest vote being an objection halts the escrow (protective veto); otherwise the proposal ratifies once approvals ≥ threshold.