Skip to content

Commit

Permalink
Merge pull request #89 from wormholes-org/perf_fixtime
Browse files Browse the repository at this point in the history
fix: remove logs of empty block
  • Loading branch information
wormholeslab authored Dec 29, 2022
2 parents 80fc522 + 42462c4 commit bde6595
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 @@ -471,7 +471,7 @@ func (w *worker) emptyLoop() {
totalCondition++
//if curTime-int64(curBlock.Time()) < 120 && curBlock.Number().Uint64() > 0 {
if totalCondition < 120 && curBlock.Number().Uint64() > 0 {
log.Info("wait empty condition", "totalCondition", totalCondition, "time", curTime, "blocktime", int64(w.chain.CurrentBlock().Time()))
//log.Info("wait empty condition", "totalCondition", totalCondition, "time", curTime, "blocktime", int64(w.chain.CurrentBlock().Time()))
continue
} else {
log.Info("ok empty condition", "totalCondition", totalCondition, "time", curTime, "blocktime", int64(w.chain.CurrentBlock().Time()))
Expand Down

0 comments on commit bde6595

Please sign in to comment.