Skip to content

Commit

Permalink
fix SimplePolicyPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Sep 14, 2018
1 parent 9f5e9d2 commit 10a348b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimplePolicy/SimplePolicyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class SimplePolicyPlugin : Plugin, ILogPlugin, IPolicyPlugin
{
private static string log_dictionary = Path.Combine(AppContext.BaseDirectory, "Logs");

public bool CheckPolicy(Transaction tx)
public bool FilterForMemoryPool(Transaction tx)
{
switch (Settings.Default.BlockedAccounts.Type)
{
Expand All @@ -27,7 +27,7 @@ public bool CheckPolicy(Transaction tx)
}
}

public IEnumerable<Transaction> Filter(IEnumerable<Transaction> transactions)
public IEnumerable<Transaction> FilterForBlock(IEnumerable<Transaction> transactions)
{
Transaction[] array = transactions.ToArray();
if (array.Length + 1 <= Settings.Default.MaxTransactionsPerBlock)
Expand Down

0 comments on commit 10a348b

Please sign in to comment.