ckb_types::prelude

Trait ResetBlock

Source
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§