mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Multiple devnet fixes (#1960)
* Add missing help string for -devnet * Remove testnet seeds from devnet * Activate BIP34/65/66 at height 2 instead of 1 Height 1 is the genesis block and not the devnet genesis block. The genesis block is still at version 1, resulting in re-indexing to fail.
This commit is contained in:
parent
bab543f3e6
commit
9876207ce2
@ -412,9 +412,9 @@ public:
|
||||
consensus.nGovernanceMinQuorum = 1;
|
||||
consensus.nGovernanceFilterElements = 500;
|
||||
consensus.nMasternodeMinimumConfirmations = 1;
|
||||
consensus.BIP34Height = 1; // BIP34 activated immediately on devnet (BIP34Hash is set later for the devnet genesis block)
|
||||
consensus.BIP65Height = 1; // BIP65 activated immediately on devnet
|
||||
consensus.BIP66Height = 1; // BIP66 activated immediately on devnet
|
||||
consensus.BIP34Height = 2; // BIP34 activated immediately on devnet
|
||||
consensus.BIP65Height = 2; // BIP65 activated immediately on devnet
|
||||
consensus.BIP66Height = 2; // BIP66 activated immediately on devnet
|
||||
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
||||
consensus.nPowTargetTimespan = 24 * 60 * 60; // Dash: 1 day
|
||||
consensus.nPowTargetSpacing = 2.5 * 60; // Dash: 2.5 minutes
|
||||
@ -470,8 +470,6 @@ public:
|
||||
devnetGenesis = FindDevNetGenesisBlock(consensus, genesis, 50 * COIN);
|
||||
consensus.hashDevnetGenesisBlock = devnetGenesis.GetHash();
|
||||
|
||||
consensus.BIP34Hash = devnetGenesis.GetHash();
|
||||
|
||||
vFixedSeeds.clear();
|
||||
vSeeds.clear();
|
||||
//vSeeds.push_back(CDNSSeedData("dashevo.org", "devnet-seed.dashevo.org"));
|
||||
@ -490,8 +488,6 @@ public:
|
||||
// Testnet Dash BIP44 coin type is '1' (All coin's testnet default)
|
||||
nExtCoinType = 1;
|
||||
|
||||
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
|
||||
|
||||
fMiningRequiresPeers = true;
|
||||
fDefaultConsistencyChecks = false;
|
||||
fRequireStandard = false;
|
||||
|
@ -19,6 +19,7 @@ void AppendParamsHelpMessages(std::string& strUsage, bool debugHelp)
|
||||
{
|
||||
strUsage += HelpMessageGroup(_("Chain selection options:"));
|
||||
strUsage += HelpMessageOpt("-testnet", _("Use the test chain"));
|
||||
strUsage += HelpMessageOpt("-devnet=<name>", _("Use devnet chain with provided name"));
|
||||
if (debugHelp) {
|
||||
strUsage += HelpMessageOpt("-regtest", "Enter regression test mode, which uses a special chain in which blocks can be solved instantly. "
|
||||
"This is intended for regression testing tools and app development.");
|
||||
|
Loading…
Reference in New Issue
Block a user