miner: fix TestBuildPayload sporadic failure (#29853)
miner: fix TestBuildPayload sporadic failure Co-authored-by: steven <steven@stevendeMacBook-Pro.local>
This commit is contained in:
parent
7224576fba
commit
1a4e4a4fe1
|
@ -141,7 +141,7 @@ func (b *testWorkerBackend) TxPool() *txpool.TxPool { return b.txPool }
|
||||||
|
|
||||||
func newTestWorker(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, db ethdb.Database, blocks int) (*Miner, *testWorkerBackend) {
|
func newTestWorker(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, db ethdb.Database, blocks int) (*Miner, *testWorkerBackend) {
|
||||||
backend := newTestWorkerBackend(t, chainConfig, engine, db, blocks)
|
backend := newTestWorkerBackend(t, chainConfig, engine, db, blocks)
|
||||||
backend.txPool.Add(pendingTxs, true, false)
|
backend.txPool.Add(pendingTxs, true, true)
|
||||||
w := New(backend, testConfig, engine)
|
w := New(backend, testConfig, engine)
|
||||||
return w, backend
|
return w, backend
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue