Skip to content

Commit

Permalink
add niceSleep 1 second when drand errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Sep 8, 2020
1 parent 4045ffe commit 1d67e38
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 1d67e38

Please sign in to comment.