Skip to main content

vote_wire_decision

Function vote_wire_decision 

Source
pub fn vote_wire_decision(
    voter_id: i32,
    candidate_id: i32,
    candidate_epoch: i32,
    last_epoch: i32,
) -> VoteWireDecision
Expand description

Validate the signed identity and epoch fields before conversion to the unsigned consensus types. The one ensures pins both variants: Accept exactly when vote_fields_nonnegative holds.