Skip to content

Commit

Permalink
fix: nil pointer issue when stopping mining new block (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 authored Jul 8, 2022
1 parent 8e74562 commit fd1d1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ LOOP:
if stopTimer != nil {
select {
case <-stopTimer.C:
log.Info("Not enough time for further transactions", "txs", len(w.current.txs))
log.Info("Not enough time for further transactions", "txs", len(env.txs))
break LOOP
default:
}
Expand Down

0 comments on commit fd1d1e3

Please sign in to comment.