pub trait DryRunner: Send + Sync {
// Required method
fn dry_run(
&self,
block: Components<Vec<Transaction>>,
forbid_fake_coins: Option<bool>,
at_height: Option<BlockHeight>,
) -> ExecutorResult<Vec<(Transaction, TransactionExecutionStatus)>>;
}
Required Methods§
Sourcefn dry_run(
&self,
block: Components<Vec<Transaction>>,
forbid_fake_coins: Option<bool>,
at_height: Option<BlockHeight>,
) -> ExecutorResult<Vec<(Transaction, TransactionExecutionStatus)>>
fn dry_run( &self, block: Components<Vec<Transaction>>, forbid_fake_coins: Option<bool>, at_height: Option<BlockHeight>, ) -> ExecutorResult<Vec<(Transaction, TransactionExecutionStatus)>>
Executes the block without committing it to the database. During execution collects the
receipts to return them. The forbid_fake_coins
field can be used to enable/disable the validation
of utxos during execution. The at_height
field can be used to dry run on top of a past block.