EIP-140 (#5477)
This commit is contained in:
committed by
Nikolay Volf
parent
2ab21acf11
commit
dd004aba9f
@@ -56,6 +56,13 @@ impl TestEngine {
|
||||
max_depth: max_depth,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_metropolis() -> TestEngine {
|
||||
TestEngine {
|
||||
engine: ethereum::new_metropolis_test().engine,
|
||||
max_depth: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Engine for TestEngine {
|
||||
@@ -72,7 +79,7 @@ impl Engine for TestEngine {
|
||||
}
|
||||
|
||||
fn schedule(&self, _block_number: u64) -> Schedule {
|
||||
let mut schedule = Schedule::new_frontier();
|
||||
let mut schedule = self.engine.schedule(0);
|
||||
schedule.max_depth = self.max_depth;
|
||||
schedule
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user