Skip to content

Commit

Permalink
break instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram committed Apr 18, 2024
1 parent a2fafd0 commit 91627fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,8 @@ loop:
// seal block early if we're over time
// note: current.header.Time = max(parent.Time + cliquePeriod, now())
if w.current.tcount > 0 && w.chainConfig.Clique != nil && uint64(time.Now().Unix()) > w.current.header.Time {
return false, true
circuitCapacityReached = true // skip subsequent invocations of commitTransactions
break
}
// If we don't have enough gas for any further transactions then we're done
if w.current.gasPool.Gas() < params.TxGas {
Expand Down

0 comments on commit 91627fb

Please # to comment.