add niceSleep 1 second when drand errors

This commit is contained in:
Anton Evangelatov 2020-09-08 18:35:10 +02:00
parent 4045ffea3c
commit 1d67e38f78

View File

@ -189,6 +189,7 @@ func (m *Miner) mine(ctx context.Context) {
_, err = m.api.BeaconGetEntry(ctx, prebase.TipSet.Height()+prebase.NullRounds+1) _, err = m.api.BeaconGetEntry(ctx, prebase.TipSet.Height()+prebase.NullRounds+1)
if err != nil { if err != nil {
log.Errorf("failed getting beacon entry: %s", err) log.Errorf("failed getting beacon entry: %s", err)
m.niceSleep(time.Second)
continue continue
} }