Add a log for when message selection fails
This commit is contained in:
parent
012efed117
commit
58f63ca8a2
@ -69,6 +69,7 @@ func (mp *MessagePool) SelectMessages(ctx context.Context, ts *types.TipSet, tq
|
|||||||
|
|
||||||
// one last sanity check
|
// one last sanity check
|
||||||
if len(sm.msgs) > build.BlockMessageLimit {
|
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]
|
sm.msgs = sm.msgs[:build.BlockMessageLimit]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user