Avoid schedule copying in nested call/create (#9190)
* Avoid schedule copying in nested call/create * Fix tests * fix test: wrong Schedule used * Fix private-tx test * Fix jsontests compilation
This commit is contained in:
@@ -745,7 +745,8 @@ impl<B: Backend> State<B> {
|
||||
fn execute<T, V>(&mut self, env_info: &EnvInfo, machine: &Machine, t: &SignedTransaction, options: TransactOptions<T, V>, virt: bool)
|
||||
-> Result<Executed<T::Output, V::Output>, ExecutionError> where T: trace::Tracer, V: trace::VMTracer,
|
||||
{
|
||||
let mut e = Executive::new(self, env_info, machine);
|
||||
let schedule = machine.schedule(env_info.number);
|
||||
let mut e = Executive::new(self, env_info, machine, &schedule);
|
||||
|
||||
match virt {
|
||||
true => e.transact_virtual(t, options),
|
||||
|
||||
Reference in New Issue
Block a user