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
de60a0c6
Commit
de60a0c6
authored
Oct 29, 2018
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mainnet genesis block time
parent
5b8be663
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DeStreamMain.cs
Sources/NBitcoin/Networks/DeStreamMain.cs
+3
-3
No files found.
Sources/NBitcoin/Networks/DeStreamMain.cs
View file @
de60a0c6
...
...
@@ -155,7 +155,7 @@ namespace NBitcoin.Networks
this
.
SeedNodes
=
this
.
ConvertToNetworkAddresses
(
seedNodes
,
this
.
DefaultPort
).
ToList
();
// Create the genesis block.
this
.
GenesisTime
=
1470467000
;
this
.
GenesisTime
=
(
uint
)
new
DateTimeOffset
(
2018
,
10
,
27
,
0
,
0
,
0
,
new
TimeSpan
()).
ToUnixTimeSeconds
()
;
this
.
GenesisNonce
=
1831645
;
this
.
GenesisBits
=
0x1e0fffff
;
this
.
GenesisVersion
=
1
;
...
...
@@ -167,8 +167,8 @@ namespace NBitcoin.Networks
initialWalletAddresses
);
this
.
Consensus
.
HashGenesisBlock
=
this
.
Genesis
.
GetHash
();
// Assert(this.Consensus.HashGenesisBlock == uint256.Parse("c5974b227ccb19ebd97578285a5937bb4bfb6dcdbf473966d8a2f9c714a8dbb0
"));
// Assert(this.Genesis.Header.HashMerkleRoot == uint256.Parse("9e3fff58fb1ba15a69198e22d99572fa024afb754bfe1d3b8d28b86fd9de62df
"));
Assert
(
this
.
Consensus
.
HashGenesisBlock
==
uint256
.
Parse
(
"754bc6b0a3ee1b05d3a5dc309b311ba84b02cbbe9992715198e6a59219afc19f
"
));
Assert
(
this
.
Genesis
.
Header
.
HashMerkleRoot
==
uint256
.
Parse
(
"8663707abae6892f1b44a62746c2b04903b61074f36dd13c21e6792c76ae663a
"
));
}
protected
Block
CreateDeStreamGenesisBlock
(
ConsensusFactory
consensusFactory
,
uint
nTime
,
uint
nNonce
,
...
...
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