Skip to content

Commit

Permalink
Add info log
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshihitoAso committed Mar 15, 2024
1 parent db8967f commit dc9640f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +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)
return false

// Notify resubmit loop to increase resubmitting interval if the
Expand All @@ -925,13 +926,15 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin
ratio: ratio,
inc: true,
}
log.Info("Aborting transaction processing", "interrupt", interrupt, "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)
return true
}
}
Expand Down

0 comments on commit dc9640f

Please sign in to comment.