@@ -32,6 +32,8 @@ import (
3232
3333const maxFeeHistoryBlockCount = 1024
3434
35+ var baseFeesPerGas = big .NewInt (1 )
36+
3537// A map containing all the valid method names that are found
3638// in the Ethereum JSON-RPC API specification.
3739// Update accordingly if any new methods are added/removed.
@@ -937,7 +939,7 @@ func (b *BlockChainAPI) FeeHistory(
937939 oldestBlock = (* hexutil .Big )(big .NewInt (int64 (block .Height )))
938940 }
939941
940- baseFees = append (baseFees , (* hexutil .Big )(big . NewInt ( 0 ) ))
942+ baseFees = append (baseFees , (* hexutil .Big )(baseFeesPerGas ))
941943
942944 rewards = append (rewards , blockRewards )
943945
@@ -1053,7 +1055,7 @@ func (b *BlockChainAPI) prepareBlockResponse(
10531055 GasLimit : hexutil .Uint64 (blockGasLimit ),
10541056 Nonce : types.BlockNonce {0x1 },
10551057 Timestamp : hexutil .Uint64 (block .Timestamp ),
1056- BaseFeePerGas : hexutil .Big (* big . NewInt ( 0 ) ),
1058+ BaseFeePerGas : hexutil .Big (* baseFeesPerGas ),
10571059 LogsBloom : types .LogsBloom ([]* types.Log {}),
10581060 Miner : evmTypes .CoinbaseAddress .ToCommon (),
10591061 Sha3Uncles : types .EmptyUncleHash ,
@@ -1230,8 +1232,7 @@ func (b *BlockChainAPI) GetUncleByBlockNumberAndIndex(
12301232
12311233// MaxPriorityFeePerGas returns a suggestion for a gas tip cap for dynamic fee transactions.
12321234func (b * BlockChainAPI ) MaxPriorityFeePerGas (ctx context.Context ) (* hexutil.Big , error ) {
1233- fee := hexutil .Big (* big .NewInt (1 ))
1234- return & fee , nil
1235+ return (* hexutil .Big )(b .config .GasPrice ), nil
12351236}
12361237
12371238// Mining returns true if client is actively mining new blocks.
0 commit comments