Skip to content

Commit

Permalink
Check error in advance-block
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Sep 2, 2020
1 parent f31dc79 commit 8417f51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/lotus/debug_advance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8417f51

Please sign in to comment.