Skip to content

Commit

Permalink
Expose the max TX per block and max low priority TX per block. (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolman committed Jan 13, 2019
1 parent 64826c0 commit a7fd659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SimplePolicy/SimplePolicyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public IEnumerable<Transaction> FilterForBlock(IEnumerable<Transaction> transact
return FilterForBlock_Policy2(transactions);
}

public int MaxTxPerBlock => Settings.Default.MaxTransactionsPerBlock;
public int MaxLowPriorityTxPerBlock => Settings.Default.MaxFreeTransactionsPerBlock;

private static IEnumerable<Transaction> FilterForBlock_Policy1(IEnumerable<Transaction> transactions)
{
int count = 0, count_free = 0;
Expand Down

0 comments on commit a7fd659

Please sign in to comment.