pub fn check_block_info_proof(block: &Block, proof_hash: &UInt256, block_hash: &UInt256) -> Result<BlockInfo> {
    if proof_hash != block_hash {
        fail!(
            BlockError::WrongMerkleProof("Proof hash is not equal given block hash".to_string())
        )
    }
    block.read_info()
}
// checks if proof contains correct block info
checks if proof contains correct block info
checks if proof contains correct block info
pub fn check_block_info_proof(block: &Block, proof_hash: &UInt256, block_hash: &UInt256) -> Result<BlockInfo> {
    if proof_hash != block_hash {
        fail!(
            BlockError::WrongMerkleProof("Proof hash is not equal given block hash".to_string())
        )
    }
    block.read_info()
}
pub fn check_block_info_proof ( block : & Block , proof_hash : & UInt256 , block_hash : & UInt256 ) -> Result < BlockInfo > { if proof_hash != block_hash { fail ! ( BlockError WrongMerkleProof ( " " to_string ( ) ) ) } block . read_info ( ) }
checks if proof contains correct block info
checks if proof contains correct block info
block
&Block
proof_hash
&UInt256
block_hash
&UInt256
block
&Block
proof_hash
&UInt256
block_hash
&UInt256