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

Modify DeStreamTest network settings

parent 47bc6254
......@@ -9,19 +9,15 @@ namespace NBitcoin
{
public abstract partial class Network
{
private readonly LinkedList<string> _deStreamWallets = new LinkedList<string>(new []
{
"DQAa8Fg1ytS5wiXbn1qToRpe9wYSQhCAWc",
"DMoFqYQNfsoorMbmTbyErxk43ev9B2EuEe",
}.OrderBy(p => Guid.NewGuid()));
protected LinkedList<string> DeStreamWallets;
private LinkedListNode<string> DeStreamWalletsNode => this._deStreamWallets.First;
private LinkedListNode<string> DeStreamWalletsNode => this.DeStreamWallets.First;
public string DeStreamWallet => this.DeStreamWalletsNode.NextOrFirst().Value;
public bool IsDeStreamAddress(string address)
{
return this._deStreamWallets.Contains(address);
return this.DeStreamWallets.Contains(address);
}
/// <summary>
......@@ -44,18 +40,24 @@ namespace NBitcoin.Networks
{
var initialWalletAddresses = new[]
{
"TWyLf11aUSQvorSvG4oc3asMGXbqkf8MEa",
"TSX8RGmEod8K4a2SvPPWZtmJ5KtrBzzXSw",
"TTp1D1NrV1uwbuL2YvWm46M3xY8nYQLRHr",
"TBgvA3dKhGMGeWXpzCG9UUviXLFjZjsQ2S",
"TV37E8whdDUEzVFSsWRHHcj7bWbeDTv9gw",
"TWyiGrPmuKvcMj9s9SGR4BWzMxhZQXJxZk",
"TNL98Epf3ASKFod2QuincwNi2CxHLkkjMD",
"TG3N5ARtJaajqdNHgC9pxnW5kL9CeWkcDa",
"TA9GwihBb9KcW3evjxdVkUh1XdQ5wbEcif",
"TBxudKvSsw1hL7aGf9a34dSdxV4e97dx5y"
"DC6UcLUzq645UeqCkdk4iJk9tvMVDQ2Ytd",
"D9CKCEtU5cJ5BReBwf4YnWpSqcC7tr1oXv",
"DU3cTLWubkzMRGoCSef1G1Jp1tj8z9TGPD",
"D95x2iYdVVUwY5RnPjBmDKiJHToTgHhdor",
"DPPnSDe416McZ2CKgmUagnJwXZuZ8b31ZM",
"DHdc7gkwZRpKPTZzEf8TBQEthmfxuAJoUM",
"DJzLTGxadMGnHqByQtyUW3zsLq5f7mSvJz",
"D7UwtqLsCNkKb94tb6TiagUHRgF4UDEXMt",
"D7a8q2Ldfmh1vBaGrANPFwyKU7oNKBRtQH",
"DDmLwBBEoerPy8nZCAxcoyzwGwBs9zUhFq"
};
const decimal initialCoins = 6000000000;
this.DeStreamWallets = new LinkedList<string>(new []
{
"DQAa8Fg1ytS5wiXbn1qToRpe9wYSQhCAWc",
"DMoFqYQNfsoorMbmTbyErxk43ev9B2EuEe",
}.OrderBy(p => Guid.NewGuid()));
var messageStart = new byte[4];
messageStart[0] = 0x70;
......
......@@ -12,19 +12,53 @@ namespace NBitcoin.Networks
public DeStreamTest() //: base()
{
var initialWalletAddresses = new []{
"DC6UcLUzq645UeqCkdk4iJk9tvMVDQ2Ytd",
"D9CKCEtU5cJ5BReBwf4YnWpSqcC7tr1oXv",
"DU3cTLWubkzMRGoCSef1G1Jp1tj8z9TGPD",
"D95x2iYdVVUwY5RnPjBmDKiJHToTgHhdor",
"DPPnSDe416McZ2CKgmUagnJwXZuZ8b31ZM",
"DHdc7gkwZRpKPTZzEf8TBQEthmfxuAJoUM",
"DJzLTGxadMGnHqByQtyUW3zsLq5f7mSvJz",
"D7UwtqLsCNkKb94tb6TiagUHRgF4UDEXMt",
"D7a8q2Ldfmh1vBaGrANPFwyKU7oNKBRtQH",
"DDmLwBBEoerPy8nZCAxcoyzwGwBs9zUhFq"
"TrpCjf3qT6QXckyXqF8nT1rCQzD2g8S6ES",
"Tqe8mF9go4eie1gukcchHRFKFEfd3X75dc",
"TqgsrrXENYgiginKbxvfTbeWRPYtR4NdMM",
"TiG1yaj7qaFfX8C4aj4T4DQK5KUxmbLGra",
"ThvAAkHQNbHUegDe7Y4AVFJuDeMZHSkU2m",
"TboaVBt66aZcFE7EhBwWrm5jCL9Xu832Ho",
"Tw5FZ1FrCCNkHD68GEbt7LvovoAj2zfmia",
"TmwSHokx4v2yWiUBpen5zx9Laxf5Kvzcn7",
"ThxztyUpm2ak44pBTcQvbRc9ERHgfP72DV",
"Tmewpbmy6SDsyZHszVfizEsR66grcJAf3J",
"Tg4P3HfrTprrUi2fyxzp5qYcXB2nYXgdmV",
"TetkuZ1vQVteMd4BARVcN2x9YjbXyUirPW",
"TvAkCawusnDEyNJLMRohEaKeyoGGK6Lz4B",
"TpfBFwygXdzq3DWrzUXDvHRcin4RsHQbhV",
"TuqX4d9tRHzq7Yf9uuEXLZEUkBuKuLsc5L",
"ThzLVN9n9U3AGZVgWU1b561WBR9TEN6XbD",
"TcktjDxbrNqdgW84xwesWG7hJphnVvUDSb",
"Tnp7gDYkQ3MtFVXQ3ZgkrZGmRErdqcdRQM",
"TvZ1syCg7ffJLX7Y2GCAZtYGXbJDrvNZy3",
"TgnFxUtqFsMXRm5kksd6o59njSCu67QeNi"
};
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 characters are rarely used upper ASCII, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
......@@ -52,19 +86,19 @@ namespace NBitcoin.Networks
this.Consensus.LastPOWBlock = 12500;
this.Consensus.DefaultAssumeValid =
new uint256("0x98fa6ef0bca5b431f15fd79dc6f879dc45b83ed4b1bbe933a383ef438321958e"); // 372652
this.Consensus.CoinbaseMaturity = 1;
this.Consensus.CoinbaseMaturity = 10;
this.Consensus.MaxMoney = long.MaxValue;
this.Consensus.ProofOfWorkReward = Money.Zero;
this.Consensus.ProofOfStakeReward = Money.Zero;
this.Consensus.LastPOWBlock = 12500;
this.Consensus.CoinType = 3564;
this.Consensus.CoinType = 1;
this.DeStreamFeePart = 0.9;
this.FeeRate = 0.0077;
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.PUBKEY_ADDRESS] = new byte[] {66};
this.Base58Prefixes[(int) Base58Type.SCRIPT_ADDRESS] = new byte[] {128};
this.Base58Prefixes[(int) Base58Type.SECRET_KEY] = new byte[] {66 + 128};
this.Checkpoints = new Dictionary<int, CheckpointInfo>();
// 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