pub struct ContextualTransactionVerifier<'a, DL> { /* private fields */ }Expand description
Context-dependent verification checks for transaction
Contains:
CompatibleVerifier
TimeRelativeTransactionVerifier
CapacityVerifier
ScriptVerifier
FeeCalculator
Implementations
sourceimpl<'a, DL> ContextualTransactionVerifier<'a, DL> where
DL: CellDataProvider + HeaderProvider + EpochProvider,
impl<'a, DL> ContextualTransactionVerifier<'a, DL> where
DL: CellDataProvider + HeaderProvider + EpochProvider,
sourcepub fn new(
rtx: &'a ResolvedTransaction,
consensus: &'a Consensus,
data_loader: &'a DL,
tx_env: &'a TxVerifyEnv
) -> Self
pub fn new(
rtx: &'a ResolvedTransaction,
consensus: &'a Consensus,
data_loader: &'a DL,
tx_env: &'a 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<'a, DL> !RefUnwindSafe for ContextualTransactionVerifier<'a, DL>
impl<'a, DL> !Send for ContextualTransactionVerifier<'a, DL>
impl<'a, DL> !Sync for ContextualTransactionVerifier<'a, DL>
impl<'a, DL> Unpin for ContextualTransactionVerifier<'a, DL>
impl<'a, DL> !UnwindSafe for ContextualTransactionVerifier<'a, DL>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more