Commit add3a1cb authored by Sergei Zubov's avatar Sergei Zubov

Fix DeStream mempool validator

parent ea68e8bc
...@@ -198,6 +198,8 @@ namespace Stratis.Bitcoin.Features.MemoryPool ...@@ -198,6 +198,8 @@ namespace Stratis.Bitcoin.Features.MemoryPool
long expectedFee = Convert.ToInt64(context.Transaction.Outputs long expectedFee = Convert.ToInt64(context.Transaction.Outputs
.Where(p => !context.Transaction.Inputs.RemoveChangePointer() .Where(p => !context.Transaction.Inputs.RemoveChangePointer()
.Select(q => context.View.Set.GetOutputFor(q).ScriptPubKey) .Select(q => context.View.Set.GetOutputFor(q).ScriptPubKey)
.Concat(context.Transaction.Inputs.GetChangePointers()
.Select(q => context.Transaction.Outputs[q].ScriptPubKey))
.Contains(p.ScriptPubKey)) .Contains(p.ScriptPubKey))
.Sum(p => p.Value) * this.network.FeeRate); .Sum(p => p.Value) * this.network.FeeRate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment