Add a log for when message selection fails

This commit is contained in:
Aayush Rajasekaran 2021-12-13 18:31:31 -05:00 committed by Jennifer Wang
parent 012efed117
commit 58f63ca8a2

View File

@ -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]
}