Add a log for when message selection fails

This commit is contained in:
Aayush Rajasekaran 2021-12-13 18:31:31 -05:00
parent a45803d8a0
commit b08bf32040

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