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
ea68e8bc
Commit
ea68e8bc
authored
Nov 21, 2018
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify DeStream Breeze node
parent
2616cb0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
Program.cs
Sources/DeStream.BreezeD/Program.cs
+6
-20
No files found.
Sources/DeStream.BreezeD/Program.cs
View file @
ea68e8bc
using
System
;
using
System
;
using
System.Linq
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
DeStream.Stratis.Bitcoin.Configuration
;
using
NBitcoin
;
using
NBitcoin
;
using
NBitcoin.Protocol
;
using
NBitcoin.Protocol
;
using
Stratis.Bitcoin
;
using
Stratis.Bitcoin
;
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Configuration
;
using
Stratis.Bitcoin.Features.Api
;
using
Stratis.Bitcoin.Features.Api
;
using
Stratis.Bitcoin.Features.LightWallet
;
using
Stratis.Bitcoin.Features.LightWallet
;
using
Stratis.Bitcoin.Features.Notifications
;
using
Stratis.Bitcoin.Features.Notifications
;
using
Stratis.Bitcoin.Utilities
;
using
Stratis.Bitcoin.Utilities
;
using
DeStream.Stratis.Bitcoin.Configuration
;
namespace
DeStream.BreezeD
namespace
DeStream.BreezeD
{
{
public
class
Program
public
class
Program
...
@@ -27,26 +25,14 @@ namespace DeStream.BreezeD
...
@@ -27,26 +25,14 @@ namespace DeStream.BreezeD
try
try
{
{
// Get the API uri.
// Get the API uri.
var
isTestNet
=
args
.
Contains
(
"-testnet"
);
Network
network
=
args
.
Contains
(
"-testnet"
)
?
Network
.
DeStreamTest
:
Network
.
DeStreamMain
;
var
isDeStream
=
args
.
Contains
(
"destream"
);
var
agent
=
"Breeze"
;
DeStreamNodeSettings
nodeSettings
;
if
(
isDeStream
)
var
nodeSettings
=
new
DeStreamNodeSettings
(
network
,
ProtocolVersion
.
ALT_PROTOCOL_VERSION
,
args
:
args
,
{
loadConfiguration
:
false
);
Network
network
=
isTestNet
?
Network
.
DeStreamTest
:
Network
.
DeStreamMain
;
nodeSettings
=
new
DeStreamNodeSettings
(
network
,
ProtocolVersion
.
ALT_PROTOCOL_VERSION
,
agent
,
args
:
args
,
loadConfiguration
:
false
);
}
else
{
nodeSettings
=
new
DeStreamNodeSettings
(
agent
:
agent
,
args
:
args
,
loadConfiguration
:
false
);
}
IFullNodeBuilder
fullNodeBuilder
=
new
FullNodeBuilder
()
IFullNodeBuilder
fullNodeBuilder
=
new
FullNodeBuilder
()
.
UseNodeSettings
(
nodeSettings
)
.
UseNodeSettings
(
nodeSettings
)
.
UseLightWallet
()
.
Use
DeStream
LightWallet
()
.
UseBlockNotification
()
.
UseBlockNotification
()
.
UseTransactionNotification
()
.
UseTransactionNotification
()
.
UseApi
();
.
UseApi
();
...
...
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