Skip to content

Commit

Permalink
fix SimplePolicyPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and 陈志同 committed Oct 13, 2020
1 parent 66d80bb commit cd49670
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 cd49670

Please sign in to comment.