Commit 4e790bff authored by Sergei Zubov's avatar Sergei Zubov

Modify DeStreamTest network settings

parent 47bc6254
...@@ -9,19 +9,15 @@ namespace NBitcoin ...@@ -9,19 +9,15 @@ namespace NBitcoin
{ {
public abstract partial class Network public abstract partial class Network
{ {
private readonly LinkedList<string> _deStreamWallets = new LinkedList<string>(new [] protected LinkedList<string> DeStreamWallets;
{
"DQAa8Fg1ytS5wiXbn1qToRpe9wYSQhCAWc",
"DMoFqYQNfsoorMbmTbyErxk43ev9B2EuEe",
}.OrderBy(p => Guid.NewGuid()));
private LinkedListNode<string> DeStreamWalletsNode => this._deStreamWallets.First; private LinkedListNode<string> DeStreamWalletsNode => this.DeStreamWallets.First;
public string DeStreamWallet => this.DeStreamWalletsNode.NextOrFirst().Value; public string DeStreamWallet => this.DeStreamWalletsNode.NextOrFirst().Value;
public bool IsDeStreamAddress(string address) public bool IsDeStreamAddress(string address)
{ {
return this._deStreamWallets.Contains(address); return this.DeStreamWallets.Contains(address);
} }
/// <summary> /// <summary>
...@@ -44,19 +40,25 @@ namespace NBitcoin.Networks ...@@ -44,19 +40,25 @@ namespace NBitcoin.Networks
{ {
var initialWalletAddresses = new[] var initialWalletAddresses = new[]
{ {
"TWyLf11aUSQvorSvG4oc3asMGXbqkf8MEa", "DC6UcLUzq645UeqCkdk4iJk9tvMVDQ2Ytd",
"TSX8RGmEod8K4a2SvPPWZtmJ5KtrBzzXSw", "D9CKCEtU5cJ5BReBwf4YnWpSqcC7tr1oXv",
"TTp1D1NrV1uwbuL2YvWm46M3xY8nYQLRHr", "DU3cTLWubkzMRGoCSef1G1Jp1tj8z9TGPD",
"TBgvA3dKhGMGeWXpzCG9UUviXLFjZjsQ2S", "D95x2iYdVVUwY5RnPjBmDKiJHToTgHhdor",
"TV37E8whdDUEzVFSsWRHHcj7bWbeDTv9gw", "DPPnSDe416McZ2CKgmUagnJwXZuZ8b31ZM",
"TWyiGrPmuKvcMj9s9SGR4BWzMxhZQXJxZk", "DHdc7gkwZRpKPTZzEf8TBQEthmfxuAJoUM",
"TNL98Epf3ASKFod2QuincwNi2CxHLkkjMD", "DJzLTGxadMGnHqByQtyUW3zsLq5f7mSvJz",
"TG3N5ARtJaajqdNHgC9pxnW5kL9CeWkcDa", "D7UwtqLsCNkKb94tb6TiagUHRgF4UDEXMt",
"TA9GwihBb9KcW3evjxdVkUh1XdQ5wbEcif", "D7a8q2Ldfmh1vBaGrANPFwyKU7oNKBRtQH",
"TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y" "DDmLwBBEoerPy8nZCAxcoyzwGwBs9zUhFq"
}; };
const decimal initialCoins = 6000000000; const decimal initialCoins = 6000000000;
this.DeStreamWallets = new LinkedList<string>(new []
{
"DQAa8Fg1ytS5wiXbn1qToRpe9wYSQhCAWc",
"DMoFqYQNfsoorMbmTbyErxk43ev9B2EuEe",
}.OrderBy(p => Guid.NewGuid()));
var messageStart = new byte[4]; var messageStart = new byte[4];
messageStart[0] = 0x70; messageStart[0] = 0x70;
messageStart[1] = 0x35; messageStart[1] = 0x35;
......
...@@ -12,19 +12,53 @@ namespace NBitcoin.Networks ...@@ -12,19 +12,53 @@ namespace NBitcoin.Networks
public DeStreamTest() //: base() public DeStreamTest() //: base()
{ {
var initialWalletAddresses = new []{ var initialWalletAddresses = new []{
"DC6UcLUzq645UeqCkdk4iJk9tvMVDQ2Ytd", "TrpCjf3qT6QXckyXqF8nT1rCQzD2g8S6ES",
"D9CKCEtU5cJ5BReBwf4YnWpSqcC7tr1oXv", "Tqe8mF9go4eie1gukcchHRFKFEfd3X75dc",
"DU3cTLWubkzMRGoCSef1G1Jp1tj8z9TGPD", "TqgsrrXENYgiginKbxvfTbeWRPYtR4NdMM",
"D95x2iYdVVUwY5RnPjBmDKiJHToTgHhdor", "TiG1yaj7qaFfX8C4aj4T4DQK5KUxmbLGra",
"DPPnSDe416McZ2CKgmUagnJwXZuZ8b31ZM", "ThvAAkHQNbHUegDe7Y4AVFJuDeMZHSkU2m",
"DHdc7gkwZRpKPTZzEf8TBQEthmfxuAJoUM", "TboaVBt66aZcFE7EhBwWrm5jCL9Xu832Ho",
"DJzLTGxadMGnHqByQtyUW3zsLq5f7mSvJz", "Tw5FZ1FrCCNkHD68GEbt7LvovoAj2zfmia",
"D7UwtqLsCNkKb94tb6TiagUHRgF4UDEXMt", "TmwSHokx4v2yWiUBpen5zx9Laxf5Kvzcn7",
"D7a8q2Ldfmh1vBaGrANPFwyKU7oNKBRtQH", "ThxztyUpm2ak44pBTcQvbRc9ERHgfP72DV",
"DDmLwBBEoerPy8nZCAxcoyzwGwBs9zUhFq" "Tmewpbmy6SDsyZHszVfizEsR66grcJAf3J",
"Tg4P3HfrTprrUi2fyxzp5qYcXB2nYXgdmV",
"TetkuZ1vQVteMd4BARVcN2x9YjbXyUirPW",
"TvAkCawusnDEyNJLMRohEaKeyoGGK6Lz4B",
"TpfBFwygXdzq3DWrzUXDvHRcin4RsHQbhV",
"TuqX4d9tRHzq7Yf9uuEXLZEUkBuKuLsc5L",
"ThzLVN9n9U3AGZVgWU1b561WBR9TEN6XbD",
"TcktjDxbrNqdgW84xwesWG7hJphnVvUDSb",
"Tnp7gDYkQ3MtFVXQ3ZgkrZGmRErdqcdRQM",
"TvZ1syCg7ffJLX7Y2GCAZtYGXbJDrvNZy3",
"TgnFxUtqFsMXRm5kksd6o59njSCu67QeNi"
}; };
const decimal initialCoins = 6000000000; const decimal initialCoins = 6000000000;
this.DeStreamWallets = new LinkedList<string>(new []
{
"TxLYmDJc9bdYLrcT8v3DhUQFD7vnd7hq5n",
"Ti4QCbGneeaYstSzy1Ak5c9QaWo7sHGznc",
"Tk4sxrgogk6SE2kPXzCugkEyc9K4dsQPos",
"TuBB9EEL7EoyWENdk81NuNWKqhpzRK4c4f",
"Tkn6StGnSoSmtMcVEc2AXf31L6fht6KbHR",
"TshSmiSkGXzXHdDdMPHYbRpaSR9fKxW1zD",
"Tm9DdZE7rjyjHpyLWn8rLviP5vcYUdFTuC",
"TZWfMcNZsJE76LqVxJUu7x3GhxN5ZJ9Uab",
"TcNV9kvXjHzzu321GZNsusnxds1xoduDhG",
"TggdqV7oMwcG2ad3xj4TyFMuGYqA8skCAN",
"TmxHkKHfoEWiJhWyMgoyTfMPFK3vPvAbXi",
"Tp3kjf2YmcVjJfpMR2VveS7T3kzazHNnkg",
"TixpciA2nv2t8msRdYDSkTibL34EjKSFXZ",
"TgySERJHqzEiwqnessVVBLY9NY8PwqvWHK",
"Th2qkyYrqY5ZrSEzsZ4K1KqYtHfjnXeAJY",
"TfLnAv1UqF672dkfftAVhxfuZLdeVnZ6nZ",
"TsWPtxeTpDSoAp1pQfDzpeJegQMiwtxfw6",
"TffHpyMjrNNxez37QUzDuMmwa4MrZmxWWR",
"ThRCqMSWZmp5VWVzob1pfjqje6SqosP8Uw",
"TxMpDfwHb5SZ9fzNMmeLthTd1D4BZ1EGyQ"
}.OrderBy(p => Guid.NewGuid()));
// 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
// a large 4-byte int at any alignment. // a large 4-byte int at any alignment.
...@@ -52,19 +86,19 @@ namespace NBitcoin.Networks ...@@ -52,19 +86,19 @@ namespace NBitcoin.Networks
this.Consensus.LastPOWBlock = 12500; this.Consensus.LastPOWBlock = 12500;
this.Consensus.DefaultAssumeValid = this.Consensus.DefaultAssumeValid =
new uint256("0x98fa6ef0bca5b431f15fd79dc6f879dc45b83ed4b1bbe933a383ef438321958e"); // 372652 new uint256("0x98fa6ef0bca5b431f15fd79dc6f879dc45b83ed4b1bbe933a383ef438321958e"); // 372652
this.Consensus.CoinbaseMaturity = 1; this.Consensus.CoinbaseMaturity = 10;
this.Consensus.MaxMoney = long.MaxValue; this.Consensus.MaxMoney = long.MaxValue;
this.Consensus.ProofOfWorkReward = Money.Zero; this.Consensus.ProofOfWorkReward = Money.Zero;
this.Consensus.ProofOfStakeReward = Money.Zero; this.Consensus.ProofOfStakeReward = Money.Zero;
this.Consensus.LastPOWBlock = 12500; this.Consensus.LastPOWBlock = 12500;
this.Consensus.CoinType = 3564; this.Consensus.CoinType = 1;
this.DeStreamFeePart = 0.9; this.DeStreamFeePart = 0.9;
this.FeeRate = 0.0077; this.FeeRate = 0.0077;
this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {30}; this.Base58Prefixes[(int) Base58Type.PUBKEY_ADDRESS] = new byte[] {66};
this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {90}; this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {128};
this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {30 + 90}; this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {66 + 128};
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