Skip to content

Commit 9477d8d

Browse files
tip cap tests
1 parent 4f583fe commit 9477d8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eth/gasprice/gasprice_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func TestSuggestTipCapNetworkUpgrades(t *testing.T) {
265265

266266
func TestSuggestTipCapSimple(t *testing.T) {
267267
applyGasPriceTest(t, suggestTipCapTest{
268-
chainConfig: params.TestChainConfig,
268+
chainConfig: params.TestFortunaChainConfig,
269269
numBlocks: 3,
270270
genBlock: testGenBlock(t, 55, 370),
271271
expectedTip: big.NewInt(1_287_001_288),
@@ -274,7 +274,7 @@ func TestSuggestTipCapSimple(t *testing.T) {
274274

275275
func TestSuggestTipCapSimpleFloor(t *testing.T) {
276276
applyGasPriceTest(t, suggestTipCapTest{
277-
chainConfig: params.TestChainConfig,
277+
chainConfig: params.TestFortunaChainConfig,
278278
numBlocks: 1,
279279
genBlock: testGenBlock(t, 55, 370),
280280
expectedTip: big.NewInt(643_500_644),
@@ -284,7 +284,7 @@ func TestSuggestTipCapSimpleFloor(t *testing.T) {
284284
func TestSuggestTipCapSmallTips(t *testing.T) {
285285
tip := big.NewInt(550 * params.GWei)
286286
applyGasPriceTest(t, suggestTipCapTest{
287-
chainConfig: params.TestChainConfig,
287+
chainConfig: params.TestFortunaChainConfig,
288288
numBlocks: 3,
289289
genBlock: func(i int, b *core.BlockGen) {
290290
b.SetCoinbase(common.Address{1})
@@ -327,7 +327,7 @@ func TestSuggestTipCapSmallTips(t *testing.T) {
327327

328328
func TestSuggestTipCapMinGas(t *testing.T) {
329329
applyGasPriceTest(t, suggestTipCapTest{
330-
chainConfig: params.TestChainConfig,
330+
chainConfig: params.TestFortunaChainConfig,
331331
numBlocks: 3,
332332
genBlock: testGenBlock(t, 500, 50),
333333
expectedTip: big.NewInt(0),
@@ -409,7 +409,7 @@ func TestSuggestTipCapMaxBlocksLookback(t *testing.T) {
409409
// suggestion should be the floor (1 wei).
410410
func TestSuggestTipCapIgnoresObservedTipsPostGranite(t *testing.T) {
411411
applyGasPriceTest(t, suggestTipCapTest{
412-
chainConfig: params.TestChainConfig, // Granite active in TestChainConfig
412+
chainConfig: params.TestFortunaChainConfig, // Granite active in TestChainConfig
413413
numBlocks: 20,
414414
// Generate blocks with very high on-chain tips to ensure they wouldn't bias the result
415415
// if the oracle looked at observed tips. Expectation remains 1 wei.
@@ -420,7 +420,7 @@ func TestSuggestTipCapIgnoresObservedTipsPostGranite(t *testing.T) {
420420

421421
func TestSuggestTipCapMaxBlocksSecondsLookback(t *testing.T) {
422422
applyGasPriceTest(t, suggestTipCapTest{
423-
chainConfig: params.TestChainConfig,
423+
chainConfig: params.TestFortunaChainConfig,
424424
numBlocks: 20,
425425
genBlock: testGenBlock(t, 550, 370),
426426
expectedTip: big.NewInt(10_384_877_852),

0 commit comments

Comments
 (0)