pub struct VerifyContext<'a, CS> { /* private fields */ }Expand description
Context for context-dependent block verification
Implementations§
source§impl<'a, CS: ChainStore<'a> + VersionbitsIndexer> VerifyContext<'a, CS>
impl<'a, CS: ChainStore<'a> + VersionbitsIndexer> VerifyContext<'a, CS>
Trait Implementations§
source§impl<'a, CS: ChainStore<'a>> ConsensusProvider for VerifyContext<'a, CS>
impl<'a, CS: ChainStore<'a>> ConsensusProvider for VerifyContext<'a, CS>
source§fn get_consensus(&self) -> &Consensus
fn get_consensus(&self) -> &Consensus
Returns the
Consensus.source§impl<'a, CS: ChainStore<'a>> HeaderChecker for VerifyContext<'a, CS>
impl<'a, CS: ChainStore<'a>> HeaderChecker for VerifyContext<'a, CS>
source§fn check_valid(&self, block_hash: &Byte32) -> Result<(), OutPointError>
fn check_valid(&self, block_hash: &Byte32) -> Result<(), OutPointError>
Check if header in main chain
source§impl<'a, CS: ChainStore<'a>> HeaderProvider for VerifyContext<'a, CS>
impl<'a, CS: ChainStore<'a>> HeaderProvider for VerifyContext<'a, CS>
source§fn get_header(&self, hash: &Byte32) -> Option<HeaderView>
fn get_header(&self, hash: &Byte32) -> Option<HeaderView>
Get the header of the given block hash