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
d2b0d085
Commit
d2b0d085
authored
Oct 19, 2018
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Mempory Pool
parent
0e5c86ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
DeStreamTxInListExtensions.cs
Sources/NBitcoin/Utils/DeStreamTxInListExtensions.cs
+4
-3
DeStreamFullNodeBuilderMemoryPoolExtension.cs
....MemoryPool/DeStreamFullNodeBuilderMemoryPoolExtension.cs
+1
-1
MempoolValidator.cs
...s/Stratis.Bitcoin.Features.MemoryPool/MempoolValidator.cs
+1
-1
No files found.
Sources/NBitcoin/Utils/DeStreamTxInListExtensions.cs
View file @
d2b0d085
using
System.Linq
;
using
System.Collections.Generic
;
using
System.Linq
;
namespace
NBitcoin
{
public
static
class
DeStreamTxInListExtensions
{
public
static
TxInList
RemoveChangePointer
(
this
TxInList
txInList
)
public
static
IEnumerable
<
TxIn
>
RemoveChangePointer
(
this
TxInList
txInList
)
{
return
(
TxInList
)
txInList
.
Where
(
p
=>
p
.
PrevOut
.
Hash
!=
uint256
.
Zero
);
return
txInList
.
Where
(
p
=>
p
.
PrevOut
.
Hash
!=
uint256
.
Zero
);
}
}
}
\ No newline at end of file
Sources/Stratis.Bitcoin.Features.MemoryPool/DeStreamFullNodeBuilderMemoryPoolExtension.cs
View file @
d2b0d085
...
...
@@ -35,7 +35,7 @@ namespace Stratis.Bitcoin.Features.MemoryPool
services
.
AddSingleton
<
BlockPolicyEstimator
>();
services
.
AddSingleton
<
IMempoolValidator
,
DeStreamMempoolValidator
>();
services
.
AddSingleton
<
MempoolOrphans
>();
services
.
AddSingleton
<
DeStreamMempoolManager
>();
services
.
AddSingleton
<
MempoolManager
,
DeStreamMempoolManager
>();
services
.
AddSingleton
<
IPooledTransaction
,
DeStreamMempoolManager
>();
services
.
AddSingleton
<
IPooledGetUnspentTransaction
,
DeStreamMempoolManager
>();
services
.
AddSingleton
<
MempoolBehavior
>();
...
...
Sources/Stratis.Bitcoin.Features.MemoryPool/MempoolValidator.cs
View file @
d2b0d085
...
...
@@ -127,7 +127,7 @@ namespace Stratis.Bitcoin.Features.MemoryPool
private
readonly
ConcurrentChain
chain
;
/// <summary>Coin view of the memory pool.</summary>
pr
ivate
readonly
CoinView
coinView
;
pr
otected
readonly
CoinView
coinView
;
/// <inheritdoc cref="IConsensusRules" />
private
readonly
IConsensusRules
consensusRules
;
...
...
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