Check error in advance-block

This commit is contained in:
Aayush Rajasekaran 2020-09-02 02:41:12 -04:00
parent f31dc791e4
commit 8417f516e5

View File

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