pub struct BeaconChainBlockVerification<PosTable, CI, CSS> { /* private fields */ }
Implementations§
Source§impl<PosTable, CI, CSS> BeaconChainBlockVerification<PosTable, CI, CSS>where
PosTable: Table,
CI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
impl<PosTable, CI, CSS> BeaconChainBlockVerification<PosTable, CI, CSS>where
PosTable: Table,
CI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
Trait Implementations§
Source§impl<PosTable, CI, CSS> BlockVerification<OwnedBeaconChainBlock> for BeaconChainBlockVerification<PosTable, CI, CSS>where
PosTable: Table,
CI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
impl<PosTable, CI, CSS> BlockVerification<OwnedBeaconChainBlock> for BeaconChainBlockVerification<PosTable, CI, CSS>where
PosTable: Table,
CI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
Source§async fn verify(
&self,
parent_header: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Header as GenericOwnedBlockHeader>::Header<'_>,
parent_block_mmr_root: &Blake3Hash,
header: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Header as GenericOwnedBlockHeader>::Header<'_>,
body: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Body as GenericOwnedBlockBody>::Body<'_>,
origin: BlockOrigin,
) -> Result<(), BlockVerificationError>
async fn verify( &self, parent_header: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Header as GenericOwnedBlockHeader>::Header<'_>, parent_block_mmr_root: &Blake3Hash, header: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Header as GenericOwnedBlockHeader>::Header<'_>, body: &<<OwnedBeaconChainBlock as GenericOwnedBlock>::Body as GenericOwnedBlockBody>::Body<'_>, origin: BlockOrigin, ) -> Result<(), BlockVerificationError>
Verify provided block header/body, typically as part of the block import, without executing
the block. Read more
Auto Trait Implementations§
impl<PosTable, CI, CSS> Freeze for BeaconChainBlockVerification<PosTable, CI, CSS>
impl<PosTable, CI, CSS> !RefUnwindSafe for BeaconChainBlockVerification<PosTable, CI, CSS>
impl<PosTable, CI, CSS> Send for BeaconChainBlockVerification<PosTable, CI, CSS>
impl<PosTable, CI, CSS> Sync for BeaconChainBlockVerification<PosTable, CI, CSS>
impl<PosTable, CI, CSS> Unpin for BeaconChainBlockVerification<PosTable, CI, CSS>
impl<PosTable, CI, CSS> !UnwindSafe for BeaconChainBlockVerification<PosTable, CI, CSS>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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