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
04878de6
Commit
04878de6
authored
Oct 31, 2018
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mainnet settings
parent
5aad3b01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
DeStreamMain.cs
Sources/NBitcoin/Networks/DeStreamMain.cs
+10
-6
No files found.
Sources/NBitcoin/Networks/DeStreamMain.cs
View file @
04878de6
...
@@ -151,11 +151,11 @@ namespace NBitcoin.Networks
...
@@ -151,11 +151,11 @@ namespace NBitcoin.Networks
new
DNSSeedData
(
"seed2.destream.io"
,
"seed2.destream.io"
)
new
DNSSeedData
(
"seed2.destream.io"
,
"seed2.destream.io"
)
};
};
string
[]
seedNodes
=
{
};
string
[]
seedNodes
=
{
"13.68.198.162"
};
this
.
SeedNodes
=
this
.
ConvertToNetworkAddresses
(
seedNodes
,
this
.
DefaultPort
).
ToList
();
this
.
SeedNodes
=
this
.
ConvertToNetworkAddresses
(
seedNodes
,
this
.
DefaultPort
).
ToList
();
// Create the genesis block.
// Create the genesis block.
this
.
GenesisTime
=
(
uint
)
new
DateTimeOffset
(
2018
,
10
,
27
,
0
,
0
,
0
,
new
TimeSpan
()).
ToUnixTimeSeconds
();
this
.
GenesisTime
=
(
uint
)
new
DateTimeOffset
(
2018
,
10
,
27
,
0
,
0
,
0
,
new
TimeSpan
()).
ToUnixTimeSeconds
();
this
.
GenesisNonce
=
1831645
;
this
.
GenesisNonce
=
1831645
;
this
.
GenesisBits
=
0x1e0fffff
;
this
.
GenesisBits
=
0x1e0fffff
;
this
.
GenesisVersion
=
1
;
this
.
GenesisVersion
=
1
;
...
@@ -167,14 +167,18 @@ namespace NBitcoin.Networks
...
@@ -167,14 +167,18 @@ namespace NBitcoin.Networks
initialWalletAddresses
);
initialWalletAddresses
);
this
.
Consensus
.
HashGenesisBlock
=
this
.
Genesis
.
GetHash
();
this
.
Consensus
.
HashGenesisBlock
=
this
.
Genesis
.
GetHash
();
Assert
(
this
.
Consensus
.
HashGenesisBlock
==
uint256
.
Parse
(
"416beaac36e7d6e08a46a87ec1bea980a9ac527609f81ea5e2c992920c052df5"
));
Assert
(
this
.
Consensus
.
HashGenesisBlock
==
Assert
(
this
.
Genesis
.
Header
.
HashMerkleRoot
==
uint256
.
Parse
(
"b99cb1b790a1506ceefc3ee989dfaa747e9393bfe64f40872553f16d541e5742"
));
uint256
.
Parse
(
"95dfb30e229e18197a812ece5d8d6c03efc9b9b65a9122a73f17d99613841b1b"
));
Assert
(
this
.
Genesis
.
Header
.
HashMerkleRoot
==
uint256
.
Parse
(
"6598d7cc968eae6d6e66e7ac88707f5e0948b816dc8ba52433d7edc1a1f2c6a3"
));
}
}
protected
Block
CreateDeStreamGenesisBlock
(
ConsensusFactory
consensusFactory
,
uint
nTime
,
uint
nNonce
,
protected
Block
CreateDeStreamGenesisBlock
(
ConsensusFactory
consensusFactory
,
uint
nTime
,
uint
nNonce
,
uint
nBits
,
int
nVersion
,
Money
initialCoins
,
string
[]
initialWalletAddresses
)
uint
nBits
,
int
nVersion
,
Money
initialCoins
,
string
[]
initialWalletAddresses
)
{
{
const
string
pszTimestamp
=
"DESTREAM IS THE FIRST DECENTRALIZED GLOBAL FINANCIAL ECOSYSTEM FOR STREAMERS"
;
const
string
pszTimestamp
=
"DESTREAM IS THE FIRST DECENTRALIZED GLOBAL FINANCIAL ECOSYSTEM FOR STREAMERS "
+
"https://sputniknews.com/science/201810281069300462-ai-cyborg-sophia-gets-robot-visa/"
;
Transaction
txNew
=
consensusFactory
.
CreateTransaction
();
Transaction
txNew
=
consensusFactory
.
CreateTransaction
();
txNew
.
Version
=
1
;
txNew
.
Version
=
1
;
...
...
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