Trait DryRunner

Source
pub trait DryRunner: Send + Sync {
    // Required method
    fn dry_run(
        &self,
        block: Components<Vec<Transaction>>,
        forbid_fake_coins: Option<bool>,
        at_height: Option<BlockHeight>,
        record_storage_read_replay: bool,
    ) -> ExecutorResult<DryRunResult>;
}

Required Methods§

Source

fn dry_run( &self, block: Components<Vec<Transaction>>, forbid_fake_coins: Option<bool>, at_height: Option<BlockHeight>, record_storage_read_replay: bool, ) -> ExecutorResult<DryRunResult>

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.

Implementors§