Struct ckb_verification_contextual::VerifyContext [−][src]
pub struct VerifyContext<'a, CS> { /* fields omitted */ }Expand description
Context for context-dependent block verification
Implementations
impl<'a, CS: ChainStore<'a>> VerifyContext<'a, CS>[src]
impl<'a, CS: ChainStore<'a>> VerifyContext<'a, CS>[src]Trait Implementations
impl<'a, CS: ChainStore<'a>> HeaderChecker for VerifyContext<'a, CS>[src]
impl<'a, CS: ChainStore<'a>> HeaderChecker for VerifyContext<'a, CS>[src]fn check_valid(&self, block_hash: &Byte32) -> Result<(), OutPointError>[src]
fn check_valid(&self, block_hash: &Byte32) -> Result<(), OutPointError>[src]Check if header in main chain
impl<'a, CS: ChainStore<'a>> HeaderProvider for VerifyContext<'a, CS>[src]
impl<'a, CS: ChainStore<'a>> HeaderProvider for VerifyContext<'a, CS>[src]fn get_header(&self, hash: &Byte32) -> Option<HeaderView>[src]
fn get_header(&self, hash: &Byte32) -> Option<HeaderView>[src]TODO(doc): @quake
fn timestamp_and_parent(&self, block_hash: &Byte32) -> (u64, u64, Byte32)[src]
fn timestamp_and_parent(&self, block_hash: &Byte32) -> (u64, u64, Byte32)[src]Return timestamp and block_number of the corresponding block_hash, and hash of parent block
fn block_median_time(
&self,
block_hash: &Byte32,
median_block_count: usize
) -> u64[src]
fn block_median_time(
&self,
block_hash: &Byte32,
median_block_count: usize
) -> u64[src]Return past block median time, including the timestamp of the given one
Auto Trait Implementations
impl<'a, CS> RefUnwindSafe for VerifyContext<'a, CS> where
CS: RefUnwindSafe,
CS: RefUnwindSafe,
impl<'a, CS> Send for VerifyContext<'a, CS> where
CS: Sync,
CS: Sync,
impl<'a, CS> Sync for VerifyContext<'a, CS> where
CS: Sync,
CS: Sync,
impl<'a, CS> Unpin for VerifyContext<'a, CS>
impl<'a, CS> UnwindSafe for VerifyContext<'a, CS> where
CS: RefUnwindSafe,
CS: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,