Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 94eff51

Browse files
committed
left a feature woops
1 parent 5064bb2 commit 94eff51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/ethapi/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,10 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
12221222
fields := RPCMarshalHeader(block.Header())
12231223
fields["size"] = hexutil.Uint64(block.Size())
12241224

1225+
if fields["baseFeePerGas"] != nil {
1226+
fields["nextBaseFeePerGas"] = misc.CalcBaseFee(config, block.Header())
1227+
}
1228+
12251229
if inclTx {
12261230
formatTx := func(tx *types.Transaction) (interface{}, error) {
12271231
return tx.Hash(), nil

0 commit comments

Comments
 (0)