From b08bf32040d246078547de935ea0f0e88f844509 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Mon, 13 Dec 2021 18:31:31 -0500 Subject: [PATCH] Add a log for when message selection fails --- chain/messagepool/selection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/messagepool/selection.go b/chain/messagepool/selection.go index d7f7750fc..3ccf2e406 100644 --- a/chain/messagepool/selection.go +++ b/chain/messagepool/selection.go @@ -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] }