pub struct ContextualTransactionVerifier<'a, DL> { /* private fields */ }
Expand description
Context-dependent verification checks for transaction
Contains:
CompatibleVerifier
TimeRelativeTransactionVerifier
CapacityVerifier
ScriptVerifier
FeeCalculator
Implementations
impl<'a, DL> ContextualTransactionVerifier<'a, DL> where
DL: CellDataProvider + HeaderProvider + EpochProvider,
impl<'a, DL> ContextualTransactionVerifier<'a, DL> where
DL: CellDataProvider + HeaderProvider + EpochProvider,
pub 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
pub 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
Perform context-dependent verification, return a Result
to CacheEntry
skip script verify will result in the return value cycle always is zero