rm : disable interruptCommit on txsCh select case (#848)

This commit is contained in:
SHIVAM SHARMA 2023-05-04 18:08:54 +05:30 committed by GitHub
parent 2a87b68f34
commit 2b048c1e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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