From b78fe0b8980bbac20dd980d793cf006b2fd7f35c Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 11 Sep 2020 21:40:25 +0300 Subject: [PATCH] fix deadlock --- chain/messagepool/pruning.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/chain/messagepool/pruning.go b/chain/messagepool/pruning.go index f40007f34..fd8199b89 100644 --- a/chain/messagepool/pruning.go +++ b/chain/messagepool/pruning.go @@ -59,11 +59,9 @@ func (mp *MessagePool) pruneMessages(ctx context.Context, ts *types.TipSet) erro } // we also never prune locally published messages - mp.lk.Lock() for actor := range mp.localAddrs { protected[actor] = struct{}{} } - mp.lk.Unlock() // Collect all messages to track which ones to remove and create chains for block inclusion pruneMsgs := make(map[cid.Cid]*types.SignedMessage, mp.currentSize)