mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 23:56:43 +00:00
Few small changes around the patch
This commit is contained in:
parent
1df06e296d
commit
1792f99bb0
1 changed files with 12 additions and 2 deletions
|
|
@ -498,7 +498,9 @@ func (f *Firehose) callEnd(source string, output []byte, gasUsed uint64, err err
|
|||
//
|
||||
// New chain should turn the logic into:
|
||||
//
|
||||
// if !call.ExecutedCode && f.isPrecompiledAddr(common.BytesToAddress(call.Address)) { call.ExecutedCode = true }
|
||||
// if !call.ExecutedCode && f.isPrecompiledAddr(common.BytesToAddress(call.Address)) {
|
||||
// call.ExecutedCode = true
|
||||
// }
|
||||
//
|
||||
|
||||
// At this point, `call.ExecutedCode`` is tied to `EVMInterpreter#Run` execution (in `core/vm/interpreter.go`)
|
||||
|
|
@ -1369,7 +1371,15 @@ func (r *receiptView) String() string {
|
|||
return "<failed>"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("[status=%d, gasUsed=%d, logs=%d]", r.Status, r.GasUsed, len(r.Logs))
|
||||
status := "unknown"
|
||||
switch r.Status {
|
||||
case types.ReceiptStatusSuccessful:
|
||||
status = "success"
|
||||
case types.ReceiptStatusFailed:
|
||||
status = "failed"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("[status=%s, gasUsed=%d, logs=%d]", status, r.GasUsed, len(r.Logs))
|
||||
}
|
||||
|
||||
func emptyBytesToNil(in []byte) []byte {
|
||||
|
|
|
|||
Loading…
Reference in a new issue