pub fn commitment(&self, network: Network) -> Result<Commitment, CommitmentError> {
        match self.coinbase_height() {
            None => Err(CommitmentError::MissingBlockHeight {
                block_hash: self.hash(),
            }),
            Some(height) => Commitment::from_bytes(self.header.commitment_bytes, network, height),
        }
    }
/// Get the parsed block [`Commitment`] for this block.
///
/// The interpretation of the commitment depends on the
/// configured `network`, and this block's height.
///
/// Returns an error if this block does not have a block height,
/// or if the commitment value is structurally invalid.
Get the parsed block [`Commitment`] for this block.
The interpretation of the commitment depends on the
configured `network`, and this block's height.

Returns an error if this block does not have a block height,
or if the commitment value is structurally invalid.
Get the parsed block [ ` Commitment ` ] for this block . The interpretation of the commitment depends on the configured ` network ` and this block ' s height . Returns an error if this block does not have a block height or if the commitment value is structurally invalid .
pub fn commitment(&self, network: Network) -> Result<Commitment, CommitmentError> {
        match self.coinbase_height() {
            None => Err(CommitmentError::MissingBlockHeight {
                block_hash: self.hash(),
            }),
            Some(height) => Commitment::from_bytes(self.header.commitment_bytes, network, height),
        }
    }
pub fn commitment ( & self , network : Network ) -> Result < Commitment , CommitmentError > { match self . coinbase_height ( ) { None => Err ( CommitmentError :: MissingBlockHeight { block_hash : self . hash ( ) , } ) , Some ( height ) => Commitment :: from_bytes ( self . header . commitment_bytes , network , height ) , } }
Get the parsed block [`Commitment`] for this block.
Get the parsed block [ ` Commitment ` ] for this block .
&self
network
Network