Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
add3a1cb
Commit
add3a1cb
authored
Nov 21, 2018
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DeStream mempool validator
parent
ea68e8bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
DeStreamMempoolValidator.cs
...s.Bitcoin.Features.MemoryPool/DeStreamMempoolValidator.cs
+2
-0
No files found.
Sources/Stratis.Bitcoin.Features.MemoryPool/DeStreamMempoolValidator.cs
View file @
add3a1cb
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment