Manual touches to preserve compatability of other networks with utils as well as fix a failing test in core/rawdb.

This commit is contained in:
philip-morlier
2023-02-21 10:29:25 -08:00
parent bff86afa0c
commit 78e00bf68d
7 changed files with 43 additions and 342 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ package tracers
import (
"reflect"
"math/big"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/vm"
@@ -37,7 +38,8 @@ func GetPluginTracer(pl *plugins.PluginLoader, name string) (func(*state.StateDB
Coinbase: core.Address(vmctx.Coinbase),
GasLimit: vmctx.GasLimit,
BlockNumber: vmctx.BlockNumber,
Time: vmctx.Time,
// casting int64 zero as bigInt is foundation PluGeth only, it is being done to preserve compatability with other networks
Time: new(big.Int).SetInt64(int64(vmctx.Time)),
Difficulty: vmctx.Difficulty,
BaseFee: vmctx.BaseFee,
}))