refactor: Execution Stage owns Executor (#1568)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
This commit is contained in:
Georgios Konstantopoulos
2023-02-28 16:55:51 -07:00
committed by GitHub
parent 71bc1451af
commit 4285186dbd
12 changed files with 181 additions and 147 deletions

View File

@ -10,7 +10,7 @@ use revm::{
/// - Block: Hook on block execution
/// - BlockWithIndex: Hook on block execution transaction index
/// - Transaction: Hook on a specific transaction hash
#[derive(Default)]
#[derive(Default, Clone)]
pub enum Hook {
#[default]
/// No hook.
@ -23,7 +23,7 @@ pub enum Hook {
All,
}
#[derive(Default)]
#[derive(Default, Clone)]
/// An inspector that calls multiple inspectors in sequence.
///
/// If a call to an inspector returns a value other than [InstructionResult::Continue] (or