pub struct ContextualTransactionVerifier<'a, DL> { /* private fields */ }Expand description
Context-dependent verification checks for transaction
Contains:
TimeRelativeTransactionVerifier
CapacityVerifier
ScriptVerifier
FeeCalculator
Implementations§
source§impl<'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