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§
Sourcefn reset_header(self) -> Block
fn reset_header(self) -> Block
Resets the header of the packed block.
Sourcefn reset_header_with_hashes(
self,
tx_hashes: &[Byte32],
tx_witness_hashes: &[Byte32],
) -> Block
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.