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
a0083f21
Commit
a0083f21
authored
6 years ago
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix node builders
parent
8a5b7393
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
DeStreamFullNodeBuilderConsensusExtension.cs
...es.Consensus/DeStreamFullNodeBuilderConsensusExtension.cs
+2
-0
DeStreamFullNodeBuilderMemoryPoolExtension.cs
....MemoryPool/DeStreamFullNodeBuilderMemoryPoolExtension.cs
+4
-3
DeStreamFullNodeBuilderWalletExtension.cs
...Features.Wallet/DeStreamFullNodeBuilderWalletExtension.cs
+6
-0
No files found.
Sources/Stratis.Bitcoin.Features.Consensus/DeStreamFullNodeBuilderConsensusExtension.cs
View file @
a0083f21
...
...
@@ -34,6 +34,7 @@ namespace Stratis.Bitcoin.Features.Consensus
{
services
.
AddSingleton
<
ConsensusOptions
,
ConsensusOptions
>();
services
.
AddSingleton
<
DeStreamDBreezeCoinView
>();
services
.
AddSingleton
<
DBreezeCoinView
>(
p
=>
p
.
GetService
<
DeStreamDBreezeCoinView
>());
services
.
AddSingleton
<
ICoinView
,
CachedCoinView
>();
services
.
AddSingleton
<
ConsensusController
>();
services
.
AddSingleton
<
IConsensusRuleEngine
,
DeStreamPowConsensusRuleEngine
>();
...
...
@@ -59,6 +60,7 @@ namespace Stratis.Bitcoin.Features.Consensus
.
FeatureServices
(
services
=>
{
services
.
AddSingleton
<
DeStreamDBreezeCoinView
>();
services
.
AddSingleton
<
DBreezeCoinView
>(
p
=>
p
.
GetService
<
DeStreamDBreezeCoinView
>());
services
.
AddSingleton
<
ICoinView
,
CachedCoinView
>();
services
.
AddSingleton
<
StakeChainStore
>().
AddSingleton
<
IStakeChain
,
StakeChainStore
>(
provider
=>
provider
.
GetService
<
StakeChainStore
>());
services
.
AddSingleton
<
IStakeValidator
,
StakeValidator
>();
...
...
This diff is collapsed.
Click to expand it.
Sources/Stratis.Bitcoin.Features.MemoryPool/DeStreamFullNodeBuilderMemoryPoolExtension.cs
View file @
a0083f21
...
...
@@ -35,11 +35,12 @@ namespace Stratis.Bitcoin.Features.MemoryPool
services
.
AddSingleton
<
BlockPolicyEstimator
>();
services
.
AddSingleton
<
IMempoolValidator
,
DeStreamMempoolValidator
>();
services
.
AddSingleton
<
MempoolOrphans
>();
services
.
AddSingleton
<
MempoolManager
,
DeStreamMempoolManager
>()
;
services
.
AddSingleton
<
IPooledTransaction
,
DeStreamMempoolManager
>();
services
.
AddSingleton
<
IPooledGetUnspentTransaction
,
DeStreamMempoolManager
>(
);
services
.
AddSingleton
<
MempoolManager
,
DeStreamMempoolManager
>()
.
AddSingleton
<
IPooledTransaction
,
MempoolManager
>(
provider
=>
provider
.
GetService
<
DeStreamMempoolManager
>())
.
AddSingleton
<
IPooledGetUnspentTransaction
,
MempoolManager
>(
provider
=>
provider
.
GetService
<
DeStreamMempoolManager
>()
);
services
.
AddSingleton
<
MempoolBehavior
>();
services
.
AddSingleton
<
MempoolSignaled
>();
services
.
AddSingleton
<
BlocksDisconnectedSignaled
>();
services
.
AddSingleton
<
IMempoolPersistence
,
MempoolPersistence
>();
services
.
AddSingleton
<
MempoolController
>();
services
.
AddSingleton
<
MempoolSettings
>();
...
...
This diff is collapsed.
Click to expand it.
Sources/Stratis.Bitcoin.Features.Wallet/DeStreamFullNodeBuilderWalletExtension.cs
View file @
a0083f21
using
Microsoft.Extensions.DependencyInjection
;
using
NBitcoin.Policy
;
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Configuration.Logging
;
using
Stratis.Bitcoin.Consensus
;
using
Stratis.Bitcoin.Features.BlockStore
;
using
Stratis.Bitcoin.Features.MemoryPool
;
using
Stratis.Bitcoin.Features.RPC
;
using
Stratis.Bitcoin.Features.Wallet.Broadcasting
;
using
Stratis.Bitcoin.Features.Wallet.Controllers
;
using
Stratis.Bitcoin.Features.Wallet.Interfaces
;
using
Stratis.Bitcoin.Interfaces
;
namespace
Stratis.Bitcoin.Features.Wallet
{
...
...
@@ -39,6 +42,9 @@ namespace Stratis.Bitcoin.Features.Wallet
services
.
AddSingleton
<
IBroadcasterManager
,
FullNodeBroadcasterManager
>();
services
.
AddSingleton
<
BroadcasterBehavior
>();
services
.
AddSingleton
<
WalletSettings
>();
services
.
AddSingleton
<
IScriptAddressReader
>(
new
ScriptAddressReader
());
services
.
AddSingleton
<
StandardTransactionPolicy
>();
services
.
AddSingleton
<
IAddressBookManager
,
AddressBookManager
>();
});
});
...
...
This diff is collapsed.
Click to expand it.
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