pub trait ResetBlock {
    // Required methods
    fn reset_header(self) -> Block;
    fn reset_header_with_hashes(
        self,
        tx_hashes: &[Byte32],
        tx_witness_hashes: &[Byte32]
    ) -> Block;
}
Expand description

Trait for resetting the header of a packed block.

Required Methods§

source

fn reset_header(self) -> Block

Resets the header of the packed block.

source

fn reset_header_with_hashes( self, tx_hashes: &[Byte32], tx_witness_hashes: &[Byte32] ) -> Block

Resets the header of the packed block with given transaction hashes and witness hashes.

Implementors§