Std-json format for VM traces (#7262)
* Std-json logging. * fixed merge with master
This commit is contained in:
committed by
Marek Kotewicz
parent
30737fe580
commit
709fbff067
@@ -138,7 +138,7 @@ pub trait Ext {
|
||||
fn inc_sstore_clears(&mut self);
|
||||
|
||||
/// Decide if any more operations should be traced. Passthrough for the VM trace.
|
||||
fn trace_next_instruction(&mut self, _pc: usize, _instruction: u8) -> bool { false }
|
||||
fn trace_next_instruction(&mut self, _pc: usize, _instruction: u8, _current_gas: U256) -> bool { false }
|
||||
|
||||
/// Prepare to trace an operation. Passthrough for the VM trace.
|
||||
fn trace_prepare_execute(&mut self, _pc: usize, _instruction: u8, _gas_cost: U256) {}
|
||||
|
||||
@@ -198,7 +198,7 @@ impl Ext for FakeExt {
|
||||
self.sstore_clears += 1;
|
||||
}
|
||||
|
||||
fn trace_next_instruction(&mut self, _pc: usize, _instruction: u8) -> bool {
|
||||
fn trace_next_instruction(&mut self, _pc: usize, _instruction: u8, _gas: U256) -> bool {
|
||||
self.tracing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user