From 1d67e38f784aea57de9ecb2240520b747849c42e Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Tue, 8 Sep 2020 18:35:10 +0200 Subject: [PATCH] add niceSleep 1 second when drand errors --- miner/miner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/miner/miner.go b/miner/miner.go index 6d3595d58..9c11dcc46 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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 }