pub struct VerifyContext<CS> { /* private fields */ }
Expand description
Context for context-dependent block verification
Implementations§
source§impl<CS: ChainStore + VersionbitsIndexer> VerifyContext<CS>
impl<CS: ChainStore + VersionbitsIndexer> VerifyContext<CS>
Trait Implementations§
source§impl<CS> Clone for VerifyContext<CS>
impl<CS> Clone for VerifyContext<CS>
source§impl<CS: ChainStore> ConsensusProvider for VerifyContext<CS>
impl<CS: ChainStore> ConsensusProvider for VerifyContext<CS>
source§fn get_consensus(&self) -> &Consensus
fn get_consensus(&self) -> &Consensus
Returns the
Consensus
.source§impl<CS: ChainStore> HeaderChecker for VerifyContext<CS>
impl<CS: ChainStore> HeaderChecker for VerifyContext<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<CS: ChainStore> HeaderProvider for VerifyContext<CS>
impl<CS: ChainStore> HeaderProvider for VerifyContext<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
Auto Trait Implementations§
impl<CS> Freeze for VerifyContext<CS>
impl<CS> RefUnwindSafe for VerifyContext<CS>where
CS: RefUnwindSafe,
impl<CS> Send for VerifyContext<CS>
impl<CS> Sync for VerifyContext<CS>
impl<CS> Unpin for VerifyContext<CS>
impl<CS> UnwindSafe for VerifyContext<CS>where
CS: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more