Update chain/messagepool/pruning.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Whyrusleeping 2020-08-01 16:39:16 -07:00 committed by GitHub
parent 31296e6cdc
commit 113fcac476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ func (mp *MessagePool) pruneMessages(ctx context.Context, ts *types.TipSet) erro
return bytes.Compare(orderedSenders[i].Bytes(), orderedSenders[j].Bytes()) == -1 return bytes.Compare(orderedSenders[i].Bytes(), orderedSenders[j].Bytes()) == -1
}) })
out := make([]*types.SignedMessage, 0, build.BlockMessageLimit) out := make([]*types.SignedMessage, 0, mp.maxTxPoolSizeLo)
{ {
for { for {
var bestSender address.Address var bestSender address.Address