mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
Ported some missing legacy fixes to keep 1:1 with Firehose legacy tracer
This commit is contained in:
parent
6573cb21a5
commit
2bb31d4ac1
1 changed files with 5 additions and 0 deletions
|
|
@ -571,6 +571,11 @@ func (f *Firehose) callEnd(source string, output []byte, gasUsed uint64, err err
|
|||
// We also treat ErrInsufficientBalance and ErrDepth as reverted in Firehose model
|
||||
// because they do not cost any gas.
|
||||
call.StatusReverted = errors.Is(err, vm.ErrExecutionReverted) || errors.Is(err, vm.ErrInsufficientBalance) || errors.Is(err, vm.ErrDepth)
|
||||
|
||||
// Known Firehose issue: FIXME Document!
|
||||
if !call.ExecutedCode && (errors.Is(err, vm.ErrInsufficientBalance) || errors.Is(err, vm.ErrDepth)) {
|
||||
call.ExecutedCode = call.CallType != pbeth.CallType_CREATE && len(call.Input) > 0
|
||||
}
|
||||
}
|
||||
|
||||
// Known Firehose issue: The EndOrdinal of the genesis block root call is never actually
|
||||
|
|
|
|||
Loading…
Reference in a new issue