Skip to content

Commit

Permalink
fix MemPoolTaskHash (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchuan authored May 20, 2020
1 parent d9a8451 commit 8d96823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/neo/Network/P2P/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ private void RequestTasks(TaskSession session)
// Search any similar hash that is on Singleton's knowledge, which means, on the way or already processed
session.AvailableTasks.RemoveWhere(p => Blockchain.Singleton.ContainsBlock(p));
HashSet<UInt256> hashes = new HashSet<UInt256>(session.AvailableTasks);
hashes.Remove(MemPoolTaskHash);
if (hashes.Count > 0)
{
foreach (UInt256 hash in hashes.ToArray())
Expand Down

0 comments on commit 8d96823

Please sign in to comment.