mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-14 09:08:11 +00:00
Fixed testnet configuration.
This commit is contained in:
parent
e3c8d3cf1c
commit
9a34a74f14
@ -68,8 +68,7 @@ public:
|
|||||||
strNetworkID = "main";
|
strNetworkID = "main";
|
||||||
consensus.nSubsidyHalvingInterval = 1050000; // 210000 * 5
|
consensus.nSubsidyHalvingInterval = 1050000; // 210000 * 5
|
||||||
consensus.BIP16Height = 1;
|
consensus.BIP16Height = 1;
|
||||||
consensus.BIP34Height = 10;
|
consensus.BIP34Height = 1;
|
||||||
//consensus.BIP34Hash = uint256S("0x581cc1e4153a2a367012d3678f0f83f7d62286d84e69ab860804acf3ff2f572b");
|
|
||||||
consensus.BIP65Height = 1;
|
consensus.BIP65Height = 1;
|
||||||
consensus.BIP66Height = 1;
|
consensus.BIP66Height = 1;
|
||||||
consensus.powLimit = uint256S("000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
consensus.powLimit = uint256S("000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
||||||
@ -183,11 +182,11 @@ public:
|
|||||||
strNetworkID = "test";
|
strNetworkID = "test";
|
||||||
consensus.nSubsidyHalvingInterval = 840000;
|
consensus.nSubsidyHalvingInterval = 840000;
|
||||||
consensus.BIP16Height = 0; // always enforce P2SH BIP16 on regtest
|
consensus.BIP16Height = 0; // always enforce P2SH BIP16 on regtest
|
||||||
consensus.BIP34Height = 76;
|
consensus.BIP34Height = 1;
|
||||||
consensus.BIP34Hash = uint256S("0x581cc1e4153a2a367012d3678f0f83f7d62286d84e69ab860804acf3ff2f572b"); // Genesis
|
consensus.BIP34Hash = uint256S("0x581cc1e4153a2a367012d3678f0f83f7d62286d84e69ab860804acf3ff2f572b"); // Genesis
|
||||||
consensus.BIP65Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
|
consensus.BIP65Height = 1;
|
||||||
consensus.BIP66Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
|
consensus.BIP66Height = 1;
|
||||||
consensus.powLimit = uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
consensus.powLimit = uint256S("000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
||||||
consensus.nPowTargetTimespan = 2.0 * 60; // Two minutes
|
consensus.nPowTargetTimespan = 2.0 * 60; // Two minutes
|
||||||
consensus.nPowTargetSpacing = 2.0 * 60; // Two minutes
|
consensus.nPowTargetSpacing = 2.0 * 60; // Two minutes
|
||||||
consensus.fPowAllowMinDifficultyBlocks = true;
|
consensus.fPowAllowMinDifficultyBlocks = true;
|
||||||
@ -200,16 +199,18 @@ public:
|
|||||||
|
|
||||||
// Deployment of BIP68, BIP112, and BIP113.
|
// Deployment of BIP68, BIP112, and BIP113.
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
|
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
|
//consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
|
||||||
|
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = -1; // Consensus::BIP9Deployment::ALWAYS_ACTIVE
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
|
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
|
||||||
|
|
||||||
// Deployment of SegWit (BIP141, BIP143, and BIP147)
|
// Deployment of SegWit (BIP141, BIP143, and BIP147)
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
|
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
|
//consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
|
||||||
|
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = -1; // Consensus::BIP9Deployment::ALWAYS_ACTIVE
|
||||||
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
|
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
|
||||||
|
|
||||||
// The best chain should have at least this much work.
|
// The best chain should have at least this much work.
|
||||||
consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000000000001df7b5aa1700ce");
|
consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000000000000000000000ffff");
|
||||||
|
|
||||||
// By default assume that the signatures in ancestors of this block are valid.
|
// By default assume that the signatures in ancestors of this block are valid.
|
||||||
consensus.defaultAssumeValid = uint256S("0x1efb29c8187d5a496a33377941d1df415169c3ce5d8c05d055f25b683ec3f9a3"); //612653
|
consensus.defaultAssumeValid = uint256S("0x1efb29c8187d5a496a33377941d1df415169c3ce5d8c05d055f25b683ec3f9a3"); //612653
|
||||||
@ -250,12 +251,12 @@ public:
|
|||||||
// nodes with support for servicebits filtering should be at the top
|
// nodes with support for servicebits filtering should be at the top
|
||||||
vSeeds.emplace_back("testnet-seed.kevacoin.org");
|
vSeeds.emplace_back("testnet-seed.kevacoin.org");
|
||||||
|
|
||||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
|
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,45); // K
|
||||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
|
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
|
||||||
base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
|
base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,70); // V
|
||||||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,139); // M
|
||||||
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
|
||||||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
|
||||||
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N
|
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N
|
||||||
|
|
||||||
bech32_hrp = "tkva";
|
bech32_hrp = "tkva";
|
||||||
|
Loading…
Reference in New Issue
Block a user