From 8417f516e5caa34d06377aefbb3eb7589021b58a Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Wed, 2 Sep 2020 02:41:12 -0400 Subject: [PATCH] Check error in advance-block --- cmd/lotus/debug_advance.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/lotus/debug_advance.go b/cmd/lotus/debug_advance.go index 0c168b3be5e..699182472eb 100644 --- a/cmd/lotus/debug_advance.go +++ b/cmd/lotus/debug_advance.go @@ -62,6 +62,9 @@ func init() { } mbi, err := api.MinerGetBaseInfo(ctx, addr, head.Height()+1, head.Key()) + if err != nil { + return xerrors.Errorf("getting base info: %w", err) + } ep := &types.ElectionProof{} ep.WinCount = ep.ComputeWinCount(types.NewInt(1), types.NewInt(1))