@@ -69,26 +69,25 @@ type ommer struct {
6969
7070//go:generate go run github.com/fjl/gencodec -type stEnv -field-override stEnvMarshaling -out gen_stenv.go
7171type stEnv struct {
72- Coinbase common.Address `json:"currentCoinbase" gencodec:"required"`
73- Difficulty * big.Int `json:"currentDifficulty"`
74- Random * big.Int `json:"currentRandom"`
75- ParentDifficulty * big.Int `json:"parentDifficulty"`
76- ParentBaseFee * big.Int `json:"parentBaseFee,omitempty"`
77- ParentGasUsed uint64 `json:"parentGasUsed,omitempty"`
78- ParentGasLimit uint64 `json:"parentGasLimit,omitempty"`
79- GasLimit uint64 `json:"currentGasLimit" gencodec:"required"`
80- Number uint64 `json:"currentNumber" gencodec:"required"`
81- Timestamp uint64 `json:"currentTimestamp" gencodec:"required"`
82- ParentTimestamp uint64 `json:"parentTimestamp,omitempty"`
83- BlockHashes map [math.HexOrDecimal64 ]common.Hash `json:"blockHashes,omitempty"`
84- Ommers []ommer `json:"ommers,omitempty"`
85- Withdrawals []* types.Withdrawal `json:"withdrawals,omitempty"`
86- BaseFee * big.Int `json:"currentBaseFee,omitempty"`
87- ParentUncleHash common.Hash `json:"parentUncleHash"`
88- ExcessBlobGas * uint64 `json:"excessBlobGas,omitempty"`
89- ParentExcessBlobGas * uint64 `json:"parentExcessBlobGas,omitempty"`
90- ParentBlobGasUsed * uint64 `json:"parentBlobGasUsed,omitempty"`
91- ParentBeaconBlockRoot * common.Hash `json:"parentBeaconBlockRoot"`
72+ Coinbase common.Address `json:"currentCoinbase" gencodec:"required"`
73+ Difficulty * big.Int `json:"currentDifficulty"`
74+ Random * big.Int `json:"currentRandom"`
75+ ParentDifficulty * big.Int `json:"parentDifficulty"`
76+ ParentBaseFee * big.Int `json:"parentBaseFee,omitempty"`
77+ ParentGasUsed uint64 `json:"parentGasUsed,omitempty"`
78+ ParentGasLimit uint64 `json:"parentGasLimit,omitempty"`
79+ GasLimit uint64 `json:"currentGasLimit" gencodec:"required"`
80+ Number uint64 `json:"currentNumber" gencodec:"required"`
81+ Timestamp uint64 `json:"currentTimestamp" gencodec:"required"`
82+ ParentTimestamp uint64 `json:"parentTimestamp,omitempty"`
83+ BlockHashes map [math.HexOrDecimal64 ]common.Hash `json:"blockHashes,omitempty"`
84+ Ommers []ommer `json:"ommers,omitempty"`
85+ Withdrawals []* types.Withdrawal `json:"withdrawals,omitempty"`
86+ BaseFee * big.Int `json:"currentBaseFee,omitempty"`
87+ ParentUncleHash common.Hash `json:"parentUncleHash"`
88+ ExcessBlobGas * uint64 `json:"excessBlobGas,omitempty"`
89+ ParentExcessBlobGas * uint64 `json:"parentExcessBlobGas,omitempty"`
90+ ParentBlobGasUsed * uint64 `json:"parentBlobGasUsed,omitempty"`
9291}
9392
9493type stEnvMarshaling struct {
@@ -183,10 +182,6 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
183182 chainConfig .DAOForkBlock .Cmp (new (big.Int ).SetUint64 (pre .Env .Number )) == 0 {
184183 misc .ApplyDAOHardFork (statedb )
185184 }
186- if beaconRoot := pre .Env .ParentBeaconBlockRoot ; beaconRoot != nil {
187- evm := vm .NewEVM (vmContext , vm.TxContext {}, statedb , chainConfig , vmConfig )
188- core .ProcessBeaconBlockRoot (* beaconRoot , evm , statedb )
189- }
190185 var blobGasUsed uint64
191186 for i , tx := range txs {
192187 if tx .Type () == types .BlobTxType && vmContext .ExcessBlobGas == nil {
0 commit comments