Merge pull request #3476 from filecoin-project/asr/advance-block
Check error in advance-block
This commit is contained in:
commit
8222f803d5
@ -62,6 +62,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mbi, err := api.MinerGetBaseInfo(ctx, addr, head.Height()+1, head.Key())
|
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 := &types.ElectionProof{}
|
||||||
ep.WinCount = ep.ComputeWinCount(types.NewInt(1), types.NewInt(1))
|
ep.WinCount = ep.ComputeWinCount(types.NewInt(1), types.NewInt(1))
|
||||||
|
Loading…
Reference in New Issue
Block a user