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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more