Merge pull request #1226 from filecoin-project/fix/dbg-errcheck

debug: Check error in AdvanceBlockCmd
This commit is contained in:
Jakub Sztandera 2020-02-06 07:05:57 +01:00 committed by GitHub
commit 21a603ed8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,9 @@ func init() {
}
msgs, err := miner.SelectMessages(ctx, api.StateGetActor, head, pending)
if err != nil {
return err
}
if len(msgs) > build.BlockMessageLimit {
log.Error("SelectMessages returned too many messages: ", len(msgs))
msgs = msgs[:build.BlockMessageLimit]