diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go index a78710a4c9..e07de0256d 100644 --- a/eth/gasprice/gasprice_test.go +++ b/eth/gasprice/gasprice_test.go @@ -398,6 +398,16 @@ func TestSuggestTipCapMaxBlocksSecondsLookback(t *testing.T) { }, timeCrunchOracleConfig()) } +func TestSuggestTipCapIncludesExtraDataGas(t *testing.T) { + applyGasPriceTest(t, suggestTipCapTest{ + chainConfig: params.TestChainConfig, + numBlocks: 20, + extDataGasUsage: DefaultMinGasUsed, + genBlock: testGenBlock(t, 100_000, 1), + expectedTip: big.NewInt(1), + }, timeCrunchOracleConfig()) +} + func TestSuggestTipCapLargeTip(t *testing.T) { applyGasPriceTest(t, suggestTipCapTest{ chainConfig: params.TestChainConfig,