Skip to content

Commit

Permalink
Merge pull request dashpay#4 from vkaxproject/develop
Browse files Browse the repository at this point in the history
Added seed nodes, updated testnet
  • Loading branch information
michaelvkax authored Jul 21, 2022
2 parents 166c144 + 96f2a44 commit cec2fdb
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 155 deletions.
71 changes: 11 additions & 60 deletions contrib/seeds/nodes_main.txt
Original file line number Diff line number Diff line change
@@ -1,62 +1,13 @@
147.182.144.51:11110
174.138.27.60:11110
89.38.226.253
147.182.144.51
82.102.17.243
99.82.220.14
103.132.3.18
27.4.29.169
188.233.100.201
180.106.138.145
45.92.158.13
188.233.9.227
118.220.130.29
185.76.9.83
64.64.123.79
188.247.56.78
1.186.110.123
176.197.73.140
223.107.232.12
91.218.219.99
191.101.132.135
191.101.132.90
89.163.144.169
104.149.149.74
5.180.44.209
195.3.223.8
188.233.4.15
185.183.106.109
185.76.9.84
37.201.152.83
20.99.160.173
195.3.223.9
34.141.245.25
94.54.4.113
194.186.142.8
95.25.71.67
79.104.209.187
79.104.209.190
41.104.222.41
111.243.214.205
180.145.33.172
188.187.1.14
109.252.185.46
111.7.100.16
213.230.111.209
46.164.219.220
117.74.115.50
31.148.135.178
61.231.182.36
213.174.1.154
95.93.62.32
111.41.165.55
185.52.142.169
89.151.179.117
87.117.52.100
89.151.179.161
91.245.43.199
85.249.52.44
182.239.115.45
188.235.34.28
91.127.243.106
223.90.49.31
185.213.212.22:11110
147.182.144.51:11110
185.206.214.183:11110
162.19.15.192:11110
61.231.164.202:11110
185.89.54.76:11110
37.24.69.42:11110
43.138.48.57:11110
172.104.5.209:11110
91.204.115.161:11110
185.89.54.76
81 changes: 45 additions & 36 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ class CMainParams : public CChainParams {
// release ASAP to avoid it where possible.
vSeeds.emplace_back("147.182.144.51");
vSeeds.emplace_back("174.138.27.60");
vSeeds.emplace_back("dnsseed.vkax.xyz");

// Vkax addresses start with 'X'
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,76);
Expand Down Expand Up @@ -543,9 +544,9 @@ class CTestNetParams : public CChainParams {
consensus.nGovernanceFilterElements = 20000;
consensus.nMasternodeMinimumConfirmations = 15;
consensus.BIP34Height = 1;
consensus.BIP34Hash = uint256S("0x");
consensus.BIP65Height = 1; // 776b6dbc4ecc4383cdfcaac2a267312bf32efb6fc8ff1bdd8a55903823f21bc8
consensus.BIP66Height = 1; // 776b6dbc4ecc4383cdfcaac2a267312bf32efb6fc8ff1bdd8a55903823f21bc8
consensus.BIP34Hash = uint256S("0xeac70f863cda2eab4ebf74ded9c6b51a82b394714a5f3405bd4214e9a0deb654");
consensus.BIP65Height = 1; // eac70f863cda2eab4ebf74ded9c6b51a82b394714a5f3405bd4214e9a0deb654
consensus.BIP66Height = 1; // eac70f863cda2eab4ebf74ded9c6b51a82b394714a5f3405bd4214e9a0deb654
consensus.DIP0001Height = true;
consensus.DIP0003Height = true;
// consensus.DIP0003EnforcementHeight = 1155;
Expand Down Expand Up @@ -599,10 +600,10 @@ class CTestNetParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nFalloffCoeff = 5; // this corresponds to 10 periods

// The best chain should have at least this much work.
consensus.nMinimumChainWork = uint256S("");
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000000000000000f41b8");

// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S("");
consensus.defaultAssumeValid = uint256S("0x814a9392110cac80c8311471b4930e83232c810123a8924efb3a18cf22e6a6e7");

pchMessageStart[0] = 0x66;
pchMessageStart[1] = 0xe2;
Expand All @@ -623,15 +624,15 @@ class CTestNetParams : public CChainParams {
// nodes with support for servicebits filtering should be at the top
vSeeds.emplace_back("testnet-seed.vkax.xyz"); // Just a static list of stable node(s), only supports x9

// Testnet Dash addresses start with 'y'
// Testnet Vkax addresses start with 'y'
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,140);
// Testnet Dash script addresses start with '8' or '9'
// Testnet Vkax script addresses start with '8' or '9'
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,19);
// Testnet private keys start with '9' or 'c' (Bitcoin defaults)
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
// Testnet Dash BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
// Testnet Vkax BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
// Testnet Dash BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
// Testnet Vkax BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};

// Testnet Vkax BIP44 coin type is '1' (All coin's testnet default)
Expand All @@ -658,21 +659,27 @@ class CTestNetParams : public CChainParams {
nPoolMaxParticipants = 20;
nFulfilledRequestExpireTime = 5*60; // fulfilled requests expire in 5 minutes

vSporkAddresses = {"ygi5foL23tpcqSR5DQGZ94ZSrAeRRa8Vsp"};
vSporkAddresses = {"ySF7HVxRtspoNeX4tjJnsKFqCMxe8YtCyq"};
nMinSporkKeys = 1;
fBIP9CheckMasternodesUpgraded = true;

checkpointData = {
{
{0, uint256S("0xef99ea0231cf5ccee64a5350f79d8b17348f9a72cc1899113c4082c9f6aa1987")},
{1, uint256S("0xeac70f863cda2eab4ebf74ded9c6b51a82b394714a5f3405bd4214e9a0deb654")},
{100, uint256S("0xe6873a2341bd466da7ec43042c74c7c57a9bfc5e1269bc8869326db1b752ecde")},
{200, uint256S("0xeb0fa44d2869eb85080d69038376ee7b8914b8ad7c532baf0e64d0258f6f269a")},
{300, uint256S("0xddab51cf70d4d77915dbd796663579f104d82b711e46f4594abc1b265d690ae3")},
{400, uint256S("0xe48b24f49632170acf612b368c24cf4bd7961d542f4f08500b564d9a46dea06a")},
{468, uint256S("0xd11c08dccbff6811046ca65f8cc27a5797806a9833214c92b963ea27cef3248c")},
{469, uint256S("0x814a9392110cac80c8311471b4930e83232c810123a8924efb3a18cf22e6a6e7")},
}
};

chainTxData = ChainTxData{
1656979667, // * UNIX timestamp of last known number of transactions (Block 477483)
0, // * total number of transactions between genesis and that timestamp
1658306878, // * UNIX timestamp of last known number of transactions (Block 477483)
757, // * total number of transactions between genesis and that timestamp
// (the tx=... number in the SetBestChain debug.log lines)
0 // * estimated number of transactions per second after that timestamp
0.0123937095768081 // * estimated number of transactions per second after that timestamp
};

}
Expand Down Expand Up @@ -709,12 +716,13 @@ class CDevNetParams : public CChainParams {
//consensus.DIP0003EnforcementHash = uint256();
consensus.DIP0008Height = true; // DIP0008 activated immediately on devnet
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~uint256(0) >> 1
consensus.nPowTargetTimespan = 24 * 60 * 60; // Dash: 1 day
consensus.nPowTargetTimespan = 7 * 24 * 60 * 60; // Dash: 1 day
consensus.nPowTargetSpacing = 2.5 * 60; // Dash: 2.5 minutes
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = false;
consensus.nPowKGWHeight = 4001; // nPowKGWHeight >= nPowDGWHeight means "no KGW"
consensus.nPowDGWHeight = 4001;
consensus.nPowFVK = 100;
consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
Expand All @@ -735,7 +743,7 @@ class CDevNetParams : public CChainParams {

// Deployment of Block Reward Reallocation
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].bit = 5;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nStartTime = 1598918400; // Sep 1st, 2020
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nStartTime = 1658480361; // July 22nd, 2022
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nWindowSize = 100;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nThresholdStart = 80; // 80% of 100
Expand All @@ -744,23 +752,23 @@ class CDevNetParams : public CChainParams {

// Deployment of DIP0020, DIP0021 and LLMQ_100_67 quorums
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].bit = 6;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nStartTime = 1604188800; // November 1st, 2020
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nTimeout = 1635724800; // November 1st, 2021
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nStartTime = 1658480361; // July 22nd, 2022
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nTimeout = 1690016361; // July 22nd, 2023
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nWindowSize = 100;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nThresholdStart = 80; // 80% of 100
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nThresholdMin = 60; // 60% of 100
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nFalloffCoeff = 5; // this corresponds to 10 periods

// The best chain should have at least this much work.
consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000000000000000000000000");
consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000000000000000");

// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S("0x000000000000000000000000000000000000000000000000000000000000000");

pchMessageStart[0] = 0xe2;
pchMessageStart[1] = 0xca;
pchMessageStart[1] = 0x35;
pchMessageStart[2] = 0xff;
pchMessageStart[3] = 0xce;
pchMessageStart[3] = 0x59;
nDefaultPort = 33330;
nPruneAfterHeight = 1000;

Expand Down Expand Up @@ -814,14 +822,14 @@ class CDevNetParams : public CChainParams {
nPoolMaxParticipants = 20;
nFulfilledRequestExpireTime = 5*60; // fulfilled requests expire in 5 minutes

vSporkAddresses = {"yjPtiKh2uwk3bDutTEA2q9mCtXyiZRWn55"};
vSporkAddresses = {"ySF7HVxRtspoNeX4tjJnsKFqCMxe8YtCyq"};
nMinSporkKeys = 1;
// devnets are started with no blocks and no MN, so we can't check for upgraded MN (as there are none)
fBIP9CheckMasternodesUpgraded = false;

checkpointData = (CCheckpointData) {
{
{ 0, uint256S("0x000008ca1832a4baf228eb1553c03d3a2c8e02399550dd6ea8d65cec3ef23d2e")},
{ 0, uint256S("0xef99ea0231cf5ccee64a5350f79d8b17348f9a72cc1899113c4082c9f6aa19")},
{ 1, devnetGenesis.GetHash() },
}
};
Expand Down Expand Up @@ -858,20 +866,21 @@ class CRegTestParams : public CChainParams {
consensus.nMasternodeMinimumConfirmations = 1;
consensus.BIP34Height = 100000000; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
consensus.BIP34Hash = uint256();
consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in rpc activation tests)
consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
consensus.BIP65Height = 1; // BIP65 activated on regtest (Used in rpc activation tests)
consensus.BIP66Height = 1; // BIP66 activated on regtest (Used in rpc activation tests)
consensus.DIP0001Height = true;
consensus.DIP0003Height = true;
// consensus.DIP0003EnforcementHeight = 500;
// consensus.DIP0003EnforcementHash = uint256();
consensus.DIP0008Height = true;
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~uint256(0) >> 1
consensus.nPowTargetTimespan = 24 * 60 * 60; // Dash: 1 day
consensus.nPowTargetTimespan = 7 * 24 * 60 * 60; // Dash: 1 day
consensus.nPowTargetSpacing = 2.5 * 60; // Dash: 2.5 minutes
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = true;
consensus.nPowKGWHeight = 15200; // same as mainnet
consensus.nPowDGWHeight = 34140; // same as mainnet
consensus.nPowFVK = 100;
consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
Expand All @@ -884,14 +893,14 @@ class CRegTestParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].bit = 5;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nStartTime = 1689843561;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nWindowSize = 500;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nThresholdStart = 400; // 80%
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nThresholdMin = 300; // 60%
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nFalloffCoeff = 5;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].bit = 6;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nStartTime = 1689843561;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nWindowSize = 100;
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0020].nThresholdStart = 80;
Expand All @@ -905,8 +914,8 @@ class CRegTestParams : public CChainParams {
consensus.defaultAssumeValid = uint256S("0x00");

pchMessageStart[0] = 0xfc;
pchMessageStart[1] = 0xc1;
pchMessageStart[2] = 0xb7;
pchMessageStart[1] = 0x66;
pchMessageStart[2] = 0x55;
pchMessageStart[3] = 0xdc;
nDefaultPort = 44440;
nPruneAfterHeight = 1000;
Expand Down Expand Up @@ -940,7 +949,7 @@ class CRegTestParams : public CChainParams {

checkpointData = {
{
{0, uint256S("0x00164ce7271bae36f615badc8d1d05107222bb8123abf04f1c3d22d351c3fa52")},
{0, uint256S("0x9a50fb296b63dafba79e9c51fbe5315ae1c7d413d26209322bc639f002d3233b")},
}
};

Expand All @@ -950,18 +959,18 @@ class CRegTestParams : public CChainParams {
0
};

// Regtest Dash addresses start with 'y'
// Regtest Vkax addresses start with 'y'
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,140);
// Regtest Dash script addresses start with '8' or '9'
// Regtest Vkax script addresses start with '8' or '9'
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,19);
// Regtest private keys start with '9' or 'c' (Bitcoin defaults)
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
// Regtest Dash BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
// Regtest Vkax BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
// Regtest Dash BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
// Regtest Vkax BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};

// Regtest Dash BIP44 coin type is '1' (All coin's testnet default)
// Regtest Vkax BIP44 coin type is '1' (All coin's testnet default)
nExtCoinType = 1;

// long living quorum params
Expand Down
Loading

0 comments on commit cec2fdb

Please sign in to comment.