mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
eth/catalyst: when creating test chain, sync txpool after inserting chain to ensure that txpool state is up-to-date before beginning test cases
This commit is contained in:
parent
22c0605b68
commit
86bcb2ed07
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue