Merge pull request #1226 from filecoin-project/fix/dbg-errcheck
debug: Check error in AdvanceBlockCmd
This commit is contained in:
commit
21a603ed8f
@ -36,6 +36,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msgs, err := miner.SelectMessages(ctx, api.StateGetActor, head, pending)
|
msgs, err := miner.SelectMessages(ctx, api.StateGetActor, head, pending)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if len(msgs) > build.BlockMessageLimit {
|
if len(msgs) > build.BlockMessageLimit {
|
||||||
log.Error("SelectMessages returned too many messages: ", len(msgs))
|
log.Error("SelectMessages returned too many messages: ", len(msgs))
|
||||||
msgs = msgs[:build.BlockMessageLimit]
|
msgs = msgs[:build.BlockMessageLimit]
|
||||||
|
Loading…
Reference in New Issue
Block a user