Skip to content

Commit

Permalink
Merge pull request #4058 from zgfzgf/miner-debug
Browse files Browse the repository at this point in the history
miner debug where injectNulls != 0
  • Loading branch information
magik6k authored Sep 28, 2020
2 parents c448d85 + 7a14455 commit b14afba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ minerLoop:
base = prebase
}

base.NullRounds += injectNulls // testing

if base.TipSet.Equals(lastBase.TipSet) && lastBase.NullRounds == base.NullRounds {
log.Warnf("BestMiningCandidate from the previous round: %s (nulls:%d)", lastBase.TipSet.Cids(), lastBase.NullRounds)
if !m.niceSleep(time.Duration(build.BlockDelaySecs) * time.Second) {
Expand All @@ -219,8 +221,6 @@ minerLoop:
continue
}

base.NullRounds += injectNulls // testing

b, err := m.mineOne(ctx, base)
if err != nil {
log.Errorf("mining block failed: %+v", err)
Expand Down

0 comments on commit b14afba

Please sign in to comment.