fix : testCommitInterruptExperimentBor

This commit is contained in:
Shivam Sharma 2023-07-05 17:34:01 +05:30
parent 25be12715f
commit a8aca8899f
2 changed files with 3 additions and 7 deletions

View file

@ -907,7 +907,7 @@ func (c *Bor) FinalizeAndAssemble(ctx context.Context, chain consensus.ChainHead
header.UncleHash = types.CalcUncleHash(nil)
// Assemble block
block := types.NewBlock(header, txs, nil, receipts, new(trie.Trie))
block := types.NewBlock(header, txs, nil, receipts, trie.NewStackTrie(nil))
// set state sync
bc := chain.(core.BorStateSyncer)

View file

@ -735,9 +735,7 @@ func testCommitInterruptExperimentBorContract(t *testing.T, delay uint, txCount
txs = append(txs, tx)
}
if err := b.TxPool().AddRemotes(txs); err != nil {
t.Fatal(err)
}
b.TxPool().AddRemotes(txs)
// Start mining!
w.start()
@ -783,9 +781,7 @@ func testCommitInterruptExperimentBor(t *testing.T, delay uint, txCount int, opc
txs = append(txs, tx)
}
if err := b.TxPool().AddRemotes(txs); err != nil {
t.Fatal(err)
}
b.TxPool().AddRemotes(txs)
// Start mining!
w.start()