From 000b1301415d8bcbd980db120a25cde47882f17c Mon Sep 17 00:00:00 2001 From: Shargon Date: Tue, 7 Mar 2023 22:21:09 +0100 Subject: [PATCH] Update src/Neo/Ledger/MemoryPool.cs --- src/Neo/Ledger/MemoryPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Neo/Ledger/MemoryPool.cs b/src/Neo/Ledger/MemoryPool.cs index 6ac64fde688..0c6f6cbbcdc 100644 --- a/src/Neo/Ledger/MemoryPool.cs +++ b/src/Neo/Ledger/MemoryPool.cs @@ -482,7 +482,7 @@ internal void UpdatePoolForBlockPersisted(Block block, DataCache snapshot) var stale = new List(); foreach (var item in _sortedTransactions) { - if (conflicts.Contains(item.Tx.Hash) || item.Tx.GetAttributes().Select(a => a.Hash).Intersect(persisted).Count() > 0) + if (conflicts.Contains(item.Tx.Hash) || item.Tx.GetAttributes().Select(a => a.Hash).Intersect(persisted).Any()) { stale.Add(item.Tx.Hash); conflictingItems.Add(item.Tx);