diff --git a/SimplePolicy/SimplePolicyPlugin.cs b/SimplePolicy/SimplePolicyPlugin.cs index 7095dacdf9..66f52d8435 100644 --- a/SimplePolicy/SimplePolicyPlugin.cs +++ b/SimplePolicy/SimplePolicyPlugin.cs @@ -32,7 +32,7 @@ public IEnumerable Filter(IEnumerable transactions) Transaction[] array = transactions.ToArray(); if (array.Length + 1 <= Settings.Default.MaxTransactionsPerBlock) return array; - transactions = array.OrderByDescending(p => p.NetworkFee / p.Size).Take(Settings.Default.MaxTransactionsPerBlock - 1); + transactions = array.OrderByDescending(p => p.NetworkFee / p.Size).ThenByDescending(p => p.NetworkFee).Take(Settings.Default.MaxTransactionsPerBlock - 1); return FilterFree(transactions); }