mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
rm : disable interruptCommit on txsCh select case (#848)
This commit is contained in:
parent
2a87b68f34
commit
2b048c1e62
1 changed files with 2 additions and 3 deletions
|
|
@ -654,7 +654,8 @@ func (w *worker) mainLoop(ctx context.Context) {
|
|||
txset := types.NewTransactionsByPriceAndNonce(w.current.signer, txs, cmath.FromBig(w.current.header.BaseFee))
|
||||
tcount := w.current.tcount
|
||||
|
||||
interruptCh, stopFn := getInterruptTimer(ctx, w.current, w.chain.CurrentBlock())
|
||||
var interruptCh chan struct{}
|
||||
|
||||
w.commitTransactions(w.current, txset, nil, interruptCh)
|
||||
|
||||
// Only update the snapshot if any new transactions were added
|
||||
|
|
@ -662,8 +663,6 @@ func (w *worker) mainLoop(ctx context.Context) {
|
|||
if tcount != w.current.tcount {
|
||||
w.updateSnapshot(w.current)
|
||||
}
|
||||
|
||||
stopFn()
|
||||
} else {
|
||||
// Special case, if the consensus engine is 0 period clique(dev mode),
|
||||
// submit sealing work here since all empty submission will be rejected
|
||||
|
|
|
|||
Loading…
Reference in a new issue