Skip to content

Commit

Permalink
Merge pull request #3664 from filecoin-project/add-sleep-when-drand-e…
Browse files Browse the repository at this point in the history
…rrors

add niceSleep 1 second when drand errors
  • Loading branch information
whyrusleeping authored Sep 9, 2020
2 parents 1d78ffc + 1d67e38 commit e2a6d02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func (m *Miner) mine(ctx context.Context) {
_, err = m.api.BeaconGetEntry(ctx, prebase.TipSet.Height()+prebase.NullRounds+1)
if err != nil {
log.Errorf("failed getting beacon entry: %s", err)
m.niceSleep(time.Second)
continue
}

Expand Down

0 comments on commit e2a6d02

Please sign in to comment.