mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +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)
|
header.UncleHash = types.CalcUncleHash(nil)
|
||||||
|
|
||||||
// Assemble block
|
// 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
|
// set state sync
|
||||||
bc := chain.(core.BorStateSyncer)
|
bc := chain.(core.BorStateSyncer)
|
||||||
|
|
|
||||||
|
|
@ -735,9 +735,7 @@ func testCommitInterruptExperimentBorContract(t *testing.T, delay uint, txCount
|
||||||
txs = append(txs, tx)
|
txs = append(txs, tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := b.TxPool().AddRemotes(txs); err != nil {
|
b.TxPool().AddRemotes(txs)
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Start mining!
|
// Start mining!
|
||||||
w.start()
|
w.start()
|
||||||
|
|
@ -783,9 +781,7 @@ func testCommitInterruptExperimentBor(t *testing.T, delay uint, txCount int, opc
|
||||||
txs = append(txs, tx)
|
txs = append(txs, tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := b.TxPool().AddRemotes(txs); err != nil {
|
b.TxPool().AddRemotes(txs)
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Start mining!
|
// Start mining!
|
||||||
w.start()
|
w.start()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue