Commit afa4ab6b authored by Sergei Zubov's avatar Sergei Zubov

Add DeStream cointype and prefix

Cointype for DeStream - 3564, 0x80000dec (DeStream Coin). Leading
symbol in address - D
parent 1df0738a
...@@ -24,7 +24,6 @@ namespace NBitcoin.Networks ...@@ -24,7 +24,6 @@ namespace NBitcoin.Networks
"TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y" "TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y"
}; };
const decimal initialCoins = 6000000000; const decimal initialCoins = 6000000000;
const int numberOfEmissionTransactions = 6;
var messageStart = new byte[4]; var messageStart = new byte[4];
messageStart[0] = 0x70; messageStart[0] = 0x70;
...@@ -70,7 +69,7 @@ namespace NBitcoin.Networks ...@@ -70,7 +69,7 @@ namespace NBitcoin.Networks
.Parse("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff").ToBytes(false)); .Parse("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff").ToBytes(false));
this.Consensus.ProofOfStakeLimitV2 = new BigInteger(uint256 this.Consensus.ProofOfStakeLimitV2 = new BigInteger(uint256
.Parse("000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff").ToBytes(false)); .Parse("000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff").ToBytes(false));
this.Consensus.CoinType = 105; this.Consensus.CoinType = 3564;
this.Consensus.DefaultAssumeValid = this.Consensus.DefaultAssumeValid =
new uint256("0x55a8205ae4bbf18f4d238c43f43005bd66e0b1f679b39e2c5c62cf6903693a5e"); // 795970 new uint256("0x55a8205ae4bbf18f4d238c43f43005bd66e0b1f679b39e2c5c62cf6903693a5e"); // 795970
this.Consensus.MaxMoney = long.MaxValue; this.Consensus.MaxMoney = long.MaxValue;
...@@ -81,9 +80,9 @@ namespace NBitcoin.Networks ...@@ -81,9 +80,9 @@ namespace NBitcoin.Networks
// { 0, new CheckpointInfo(new uint256("0x00000e246d7b73b88c9ab55f2e5e94d9e22d471def3df5ea448f5576b1d156b9"), new uint256("0x0000000000000000000000000000000000000000000000000000000000000000")) }, // { 0, new CheckpointInfo(new uint256("0x00000e246d7b73b88c9ab55f2e5e94d9e22d471def3df5ea448f5576b1d156b9"), new uint256("0x0000000000000000000000000000000000000000000000000000000000000000")) },
this.Base58Prefixes = new byte[12][]; this.Base58Prefixes = new byte[12][];
this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {63}; this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {30};
this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {125}; this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {90};
this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {63 + 128}; 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_NO_EC] = new byte[] {0x01, 0x42};
this.Base58Prefixes[(int) Base58Type.ENCRYPTED_SECRET_KEY_EC] = new byte[] {0x01, 0x43}; 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_PUBLIC_KEY] = new byte[] {0x04, 0x88, 0xB2, 0x1E};
......
...@@ -24,7 +24,6 @@ namespace NBitcoin.Networks ...@@ -24,7 +24,6 @@ namespace NBitcoin.Networks
"TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y" "TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y"
}; };
const decimal initialCoins = 6000000000; const decimal initialCoins = 6000000000;
const int numberOfEmissionTransactions = 6;
// The message start string is designed to be unlikely to occur in normal data. // The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce // The characters are rarely used upper ASCII, not valid as UTF-8, and produce
...@@ -58,10 +57,11 @@ namespace NBitcoin.Networks ...@@ -58,10 +57,11 @@ namespace NBitcoin.Networks
this.Consensus.ProofOfWorkReward = Money.Zero; this.Consensus.ProofOfWorkReward = Money.Zero;
this.Consensus.ProofOfStakeReward = Money.COIN; this.Consensus.ProofOfStakeReward = Money.COIN;
this.Consensus.LastPOWBlock = 12500; this.Consensus.LastPOWBlock = 12500;
this.Consensus.CoinType = 3564;
this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {65}; this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {30};
this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {196}; this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {90};
this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {65 + 128}; this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {30 + 90};
this.Checkpoints = new Dictionary<int, CheckpointInfo>(); this.Checkpoints = new Dictionary<int, CheckpointInfo>();
// TODO: Add genesis and premine block to Checkpoints // TODO: Add genesis and premine block to Checkpoints
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment