diff --git a/src/neo/IO/Caching/DataCache.cs b/src/neo/IO/Caching/DataCache.cs index 1d48d62627..4b39b5b7cc 100644 --- a/src/neo/IO/Caching/DataCache.cs +++ b/src/neo/IO/Caching/DataCache.cs @@ -165,7 +165,7 @@ public void Delete(TKey key) )) .OrderBy(p => p.KeyBytes, ByteArrayComparer.Default) .ToArray(); - cachedKeySet = new HashSet(cached.Select(p => p.Item2)); + cachedKeySet = new HashSet(dictionary.Keys); } var uncached = FindInternal(key_prefix ?? Array.Empty()) .Where(p => !cachedKeySet.Contains(p.Key))