Return errors
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
bcbfc931ba
commit
1e9f293994
@ -28,11 +28,11 @@ func init() {
|
|||||||
ctx := lcli.ReqContext(cctx)
|
ctx := lcli.ReqContext(cctx)
|
||||||
head, err := api.ChainHead(ctx)
|
head, err := api.ChainHead(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
pending, err := api.MpoolPending(ctx, head)
|
pending, err := api.MpoolPending(ctx, head)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
msgs, err := miner.SelectMessages(ctx, api.StateGetActor, head, pending)
|
msgs, err := miner.SelectMessages(ctx, api.StateGetActor, head, pending)
|
||||||
|
Loading…
Reference in New Issue
Block a user