Skip to content

Commit

Permalink
Merge pull request #198 from ipfs-force-community/fix/correct_handle_…
Browse files Browse the repository at this point in the history
…nullround

fix: Correctly handle null round
  • Loading branch information
diwufeiwen authored Jun 8, 2023
2 parents 015ac66 + 441ef3a commit b0f3403
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miner/multiminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ func (m *Miner) mine(ctx context.Context) {
// Wait until the next epoch, plus the propagation delay, so a new tipset
// has enough time to form.
m.untilNextEpoch(base)

if len(winPoSts) == 0 {
base.NullRounds++
}
}
}

Expand Down

0 comments on commit b0f3403

Please sign in to comment.