From 50e1650344e5fdf5d216d81f06b23c9c79404280 Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 5 Aug 2020 10:31:42 +0300 Subject: [PATCH] fix Trim bug --- chain/messagepool/selection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/messagepool/selection.go b/chain/messagepool/selection.go index 45c7a28ed..5786996c6 100644 --- a/chain/messagepool/selection.go +++ b/chain/messagepool/selection.go @@ -308,7 +308,7 @@ func (mc *msgChain) Trim(gasLimit int64, mp *MessagePool, ts *types.TipSet) { mc.msgs = nil mc.valid = false } else { - mc.msgs = mc.msgs[:i] + mc.msgs = mc.msgs[:i+1] } if mc.next != nil {