Merge branch 'rosetta_test' of https://github.com/LuttyYang/harmony into rosetta_test

pull/4065/head
haodi 3 years ago
commit 8eb5291303
  1. 4
      hmy/tracers/block_tracer.go

@ -261,10 +261,10 @@ func (jst *ParityBlockTracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode,
// CaptureFault implements the ParityBlockTracer interface to trace an execution fault
// while running an opcode.
func (jst *ParityBlockTracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, memory *vm.Memory, stack *vm.Stack, contract *vm.Contract, depth int, err error) error {
call := jst.pop()
if call.err != nil {
if jst.last().err != nil {
return nil
}
call := jst.pop()
call.err = err
// Consume all available gas and clean any leftovers
if call.gas != 0 {

Loading…
Cancel
Save