Merge pull request #3664 from filecoin-project/add-sleep-when-drand-errors

add niceSleep 1 second when drand errors
This commit is contained in:
Whyrusleeping 2020-09-09 10:37:43 -07:00 committed by GitHub
commit e2a6d02570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}