Std-json format for VM traces (#7262)

* Std-json logging.

* fixed merge with master
This commit is contained in:
Tomasz Drwięga
2018-01-18 10:32:22 +01:00
committed by Marek Kotewicz
parent 30737fe580
commit 709fbff067
13 changed files with 408 additions and 104 deletions

View File

@@ -132,7 +132,9 @@ impl<Cost: CostType> vm::Vm for Interpreter<Cost> {
reader.position += 1;
// TODO: make compile-time removable if too much of a performance hit.
do_trace = do_trace && ext.trace_next_instruction(reader.position - 1, instruction);
do_trace = do_trace && ext.trace_next_instruction(
reader.position - 1, instruction, gasometer.current_gas.as_u256(),
);
let info = &infos[instruction as usize];
self.verify_instruction(ext, instruction, info, &stack)?;