Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshihitoAso committed Mar 15, 2024
1 parent dc9640f commit 2438afa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin
switch {
// Payload timeout
case atomic.LoadInt32(interrupt) == commitInterruptTimeout:
log.Info("Aborting transaction processing", "interrupt", interrupt)
log.Info("Aborting transaction processing", "signal", commitInterruptTimeout)
return false

// Notify resubmit loop to increase resubmitting interval if the
Expand All @@ -926,15 +926,15 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin
ratio: ratio,
inc: true,
}
log.Info("Aborting transaction processing", "interrupt", interrupt, "ratio", ratio)
log.Info("Aborting transaction processing", "signal", commitInterruptResubmit, "ratio", ratio)
return false

// If the block building is interrupted by newhead event, discard it
// totally. Committing the interrupted block introduces unnecessary
// delay, and possibly causes miner to mine on the previous head,
// which could result in higher uncle rate.
case atomic.LoadInt32(interrupt) == commitInterruptNewHead:
log.Info("Aborting transaction processing", "interrupt", interrupt)
log.Info("Aborting transaction processing", "signal", commitInterruptNewHead)
return true
}
}
Expand Down

0 comments on commit 2438afa

Please sign in to comment.