Skip to content

Commit

Permalink
rm : disable interruptCommit on txsCh select case (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharma authored May 4, 2023
1 parent 2a87b68 commit 2b048c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,16 +654,15 @@ 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
// to the pending block
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
Expand Down

0 comments on commit 2b048c1

Please sign in to comment.