Add a log for when message selection fails
This commit is contained in:
parent
a45803d8a0
commit
b08bf32040
@ -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