From 0dc44d0a34222e12900f2ac2a6e24ebadcc5f135 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 15 Nov 2023 13:49:31 +0100 Subject: [PATCH] core/txpool/legacypool: extend test --- core/txpool/legacypool/legacypool_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 03ca016f4e..0366a58d61 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -1529,6 +1529,11 @@ func TestMinGasPriceEnforced(t *testing.T) { if err := pool.Add([]*types.Transaction{tx}, true, false)[0]; !errors.Is(err, txpool.ErrUnderpriced) { t.Fatalf("Min tip not enforced") } + // Make sure the tx is accepted if locals are enabled + pool.config.NoLocals = false + if err := pool.Add([]*types.Transaction{tx}, true, false)[0]; err != nil { + t.Fatalf("Min tip enforced with locals enabled, error: %v", err) + } } // Tests that setting the transaction pool gas price to a higher value correctly