darkfi::validator::verification

Function verify_proposal

Source
pub async fn verify_proposal(
    consensus: &Consensus,
    proposal: &Proposal,
    verify_fees: bool,
) -> Result<(Fork, Option<usize>)>
Expand description

Verify given Proposal against provided consensus state.

A proposal is considered valid when the following rules apply: 1. Proposal hash matches the actual block one 2. Block is valid Additional validity rules can be applied.