pub struct ContextualTransactionVerifier<DL> { /* private fields */ }
Expand description
Context-dependent verification checks for transaction
Contains:
CompatibleVerifier
TimeRelativeTransactionVerifier
CapacityVerifier
ScriptVerifier
FeeCalculator
Implementations§
source§impl<DL> ContextualTransactionVerifier<DL>where
DL: CellDataProvider + HeaderProvider + ExtensionProvider + HeaderFieldsProvider + EpochProvider + Send + Sync + Clone + 'static,
impl<DL> ContextualTransactionVerifier<DL>where
DL: CellDataProvider + HeaderProvider + ExtensionProvider + HeaderFieldsProvider + EpochProvider + Send + Sync + Clone + 'static,
sourcepub fn new(
rtx: Arc<ResolvedTransaction>,
consensus: Arc<Consensus>,
data_loader: DL,
tx_env: Arc<TxVerifyEnv>
) -> Self
pub fn new( rtx: Arc<ResolvedTransaction>, consensus: Arc<Consensus>, data_loader: DL, tx_env: Arc<TxVerifyEnv> ) -> Self
Creates a new ContextualTransactionVerifier
sourcepub fn resumable_verify(
&self,
limit_cycles: Cycle
) -> Result<(VerifyResult, Capacity), Error>
pub fn resumable_verify( &self, limit_cycles: Cycle ) -> Result<(VerifyResult, Capacity), Error>
Perform resumable context-dependent verification, return a Result
to CacheEntry
Auto Trait Implementations§
impl<DL> !Freeze for ContextualTransactionVerifier<DL>
impl<DL> !RefUnwindSafe for ContextualTransactionVerifier<DL>
impl<DL> Send for ContextualTransactionVerifier<DL>where
DL: Send,
impl<DL> !Sync for ContextualTransactionVerifier<DL>
impl<DL> Unpin for ContextualTransactionVerifier<DL>where
DL: Unpin,
impl<DL> !UnwindSafe for ContextualTransactionVerifier<DL>
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> 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