mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fix : testCommitInterruptExperimentBor
This commit is contained in:
parent
25be12715f
commit
a8aca8899f
2 changed files with 3 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue