Skip to main content

check_block_fields

Function check_block_fields 

Source
pub fn check_block_fields(
    proof: &TenderdashBlockProof,
    block: &Block,
) -> Result<(), BlockProofError>
Expand description

Check that the fields a getBlocks block repeats from its header are the ones in proof. Only the header is signed, and a node reads those fields from another Tenderdash answer than the proof, so nothing else ties them to it.