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
eacb32ab
Commit
eacb32ab
authored
6 years ago
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix network settings
parent
8c8f077e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
DeStreamMain.cs
Sources/Stratis.Bitcoin.Networks/DeStreamMain.cs
+16
-16
KnownNetworks.cs
Sources/Stratis.Bitcoin.Tests.Common/KnownNetworks.cs
+4
-0
No files found.
Sources/Stratis.Bitcoin.Networks/DeStreamMain.cs
View file @
eacb32ab
...
...
@@ -41,6 +41,21 @@ namespace Stratis.Bitcoin.Networks
var
consensusFactory
=
new
PosConsensusFactory
();
this
.
Base58Prefixes
=
new
byte
[
12
][];
this
.
Base58Prefixes
[(
int
)
Base58Type
.
PUBKEY_ADDRESS
]
=
new
byte
[]
{
30
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
SCRIPT_ADDRESS
]
=
new
byte
[]
{
90
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
SECRET_KEY
]
=
new
byte
[]
{
30
+
90
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ENCRYPTED_SECRET_KEY_NO_EC
]
=
new
byte
[]
{
0x01
,
0x42
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ENCRYPTED_SECRET_KEY_EC
]
=
new
byte
[]
{
0x01
,
0x43
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
EXT_PUBLIC_KEY
]
=
new
byte
[]
{
0x04
,
0x88
,
0xB2
,
0x1E
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
EXT_SECRET_KEY
]
=
new
byte
[]
{
0x04
,
0x88
,
0xAD
,
0xE4
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
PASSPHRASE_CODE
]
=
new
byte
[]
{
0x2C
,
0xE9
,
0xB3
,
0xE1
,
0xFF
,
0x39
,
0xE2
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
CONFIRMATION_CODE
]
=
new
byte
[]
{
0x64
,
0x3B
,
0xF6
,
0xA8
,
0x9A
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
STEALTH_ADDRESS
]
=
new
byte
[]
{
0x2a
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ASSET_ID
]
=
new
byte
[]
{
23
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
COLORED_ADDRESS
]
=
new
byte
[]
{
0x13
};
// Create the genesis block.
var
initialWalletAddresses
=
new
[]
{
...
...
@@ -64,7 +79,7 @@ namespace Stratis.Bitcoin.Networks
this
.
GenesisReward
=
Money
.
Coins
(
initialCoins
);
this
.
GenesisWalletAddress
=
initialWalletAddresses
.
First
();
var
genesisBlock
=
this
.
CreateDeStreamGenesisBlock
(
this
.
Consensus
.
C
onsensusFactory
,
this
.
GenesisTime
,
var
genesisBlock
=
this
.
CreateDeStreamGenesisBlock
(
c
onsensusFactory
,
this
.
GenesisTime
,
this
.
GenesisNonce
,
this
.
GenesisBits
,
this
.
GenesisVersion
,
this
.
GenesisReward
,
initialWalletAddresses
);
...
...
@@ -122,21 +137,6 @@ namespace Stratis.Bitcoin.Networks
proofOfStakeReward
:
Money
.
Zero
);
this
.
Base58Prefixes
=
new
byte
[
12
][];
this
.
Base58Prefixes
[(
int
)
Base58Type
.
PUBKEY_ADDRESS
]
=
new
byte
[]
{
30
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
SCRIPT_ADDRESS
]
=
new
byte
[]
{
90
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
SECRET_KEY
]
=
new
byte
[]
{
30
+
90
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ENCRYPTED_SECRET_KEY_NO_EC
]
=
new
byte
[]
{
0x01
,
0x42
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ENCRYPTED_SECRET_KEY_EC
]
=
new
byte
[]
{
0x01
,
0x43
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
EXT_PUBLIC_KEY
]
=
new
byte
[]
{
0x04
,
0x88
,
0xB2
,
0x1E
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
EXT_SECRET_KEY
]
=
new
byte
[]
{
0x04
,
0x88
,
0xAD
,
0xE4
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
PASSPHRASE_CODE
]
=
new
byte
[]
{
0x2C
,
0xE9
,
0xB3
,
0xE1
,
0xFF
,
0x39
,
0xE2
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
CONFIRMATION_CODE
]
=
new
byte
[]
{
0x64
,
0x3B
,
0xF6
,
0xA8
,
0x9A
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
STEALTH_ADDRESS
]
=
new
byte
[]
{
0x2a
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
ASSET_ID
]
=
new
byte
[]
{
23
};
this
.
Base58Prefixes
[(
int
)
Base58Type
.
COLORED_ADDRESS
]
=
new
byte
[]
{
0x13
};
this
.
Checkpoints
=
new
Dictionary
<
int
,
CheckpointInfo
>
{
{
...
...
This diff is collapsed.
Click to expand it.
Sources/Stratis.Bitcoin.Tests.Common/KnownNetworks.cs
View file @
eacb32ab
...
...
@@ -19,5 +19,9 @@ namespace Stratis.Bitcoin.Tests.Common
public
static
Network
StratisTest
=>
NetworkRegistration
.
GetNetwork
(
"StratisTest"
)
??
NetworkRegistration
.
Register
(
new
StratisTest
());
public
static
Network
StratisRegTest
=>
NetworkRegistration
.
GetNetwork
(
"StratisRegTest"
)
??
NetworkRegistration
.
Register
(
new
StratisRegTest
());
public
static
Network
DeStreamMain
=>
NetworkRegistration
.
GetNetwork
(
"DeStreamMain"
)
??
NetworkRegistration
.
Register
(
new
DeStreamMain
());
public
static
Network
DeStreamTest
=>
NetworkRegistration
.
GetNetwork
(
"DeStreamTest"
)
??
NetworkRegistration
.
Register
(
new
DeStreamTest
());
}
}
\ No newline at end of file
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