Skip to content

Commit

Permalink
Add a log for when message selection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Dec 13, 2021
1 parent a45803d commit b08bf32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chain/messagepool/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (mp *MessagePool) SelectMessages(ctx context.Context, ts *types.TipSet, tq

// one last sanity check
if len(sm.msgs) > build.BlockMessageLimit {
log.Errorf("message selection chose too many messages %d > %d", len(sm.msgs), build.BlockMessageLimit)
sm.msgs = sm.msgs[:build.BlockMessageLimit]
}

Expand Down

0 comments on commit b08bf32

Please sign in to comment.