diff --git a/pkg/core/mem_pool.go b/pkg/core/mem_pool.go index 1c8396719..1a6f148c2 100644 --- a/pkg/core/mem_pool.go +++ b/pkg/core/mem_pool.go @@ -106,6 +106,7 @@ func (mp MemPool) TryAdd(hash util.Uint256, pItem *PoolItem) bool { mp.lock.RLock() if _, ok := mp.unsortedTxn[hash]; ok { + mp.lock.RUnlock() return false } mp.unsortedTxn[hash] = pItem