Skip to main content

same_block_except_proof_of_work

Function same_block_except_proof_of_work 

Source
fn same_block_except_proof_of_work(
    proposal: &ContextuallyVerifiedBlock,
    block: &ContextuallyVerifiedBlock,
) -> bool
Expand description

Returns true if proposal and block have the same transactions, height, and header apart from the nonce and Equihash solution.

Both blocks’ transactions were validated against their headers: proposal’s by the state, and block’s by the sender of Request::CommitContextuallyVerifiedBlock. A validated header’s Merkle root and block commitments cover the transactions and their authorizing data, so this means the same block contents.