From 86bcb2ed0701457d45f868c939d80e2ddf03d1e6 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 9 Apr 2025 17:51:36 +0800 Subject: [PATCH] eth/catalyst: when creating test chain, sync txpool after inserting chain to ensure that txpool state is up-to-date before beginning test cases --- eth/catalyst/api_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go index e91e07d05d..cb6ae053b6 100644 --- a/eth/catalyst/api_test.go +++ b/eth/catalyst/api_test.go @@ -447,6 +447,9 @@ func startEthService(t *testing.T, genesis *core.Genesis, blocks []*types.Block) n.Close() t.Fatal("can't import test blocks:", err) } + if err := ethservice.TxPool().Sync(); err != nil { + t.Fatal("failed to sync txpool after initial blockchain import:", err) + } ethservice.SetSynced() return n, ethservice