Skip to content

Commit

Permalink
Removing Shall Drop to another PR
Browse files Browse the repository at this point in the history
  • Loading branch information
vncoelho committed Aug 4, 2019
1 parent 0dfca83 commit e4f106d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions neo/Network/P2P/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Neo.Ledger;
using Neo.Network.P2P.Payloads;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -277,13 +276,5 @@ internal protected override bool IsHighPriority(object message)
return false;
}
}

internal protected override bool ShallDrop(object message, IEnumerable queue)
{
if (!(message is TaskManager.NewTasks tasks)) return false;
// Remove duplicate tasks
if (queue.OfType<TaskManager.NewTasks>().Any(x => x.Payload.Type == tasks.Payload.Type && x.Payload.Hashes.SequenceEqual(tasks.Payload.Hashes))) return true;
return false;
}
}
}

0 comments on commit e4f106d

Please sign in to comment.