7
7
#include " assert.h"
8
8
#include " chainparams.h"
9
9
#include " main.h"
10
+ #include " db.h"
10
11
#include " tinyformat.h"
11
12
#include " util.h"
12
-
13
+ # include " chainparamsseeds.h "
13
14
#include < boost/assign/list_of.hpp>
14
15
15
16
using namespace boost ::assign;
@@ -19,7 +20,7 @@ struct SeedSpec6 {
19
20
uint16_t port;
20
21
};
21
22
22
- # include " chainparamsseeds.h "
23
+
23
24
24
25
static CBlock CreateGenesisBlock (const char * pszTimestamp, const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
25
26
{
@@ -92,44 +93,41 @@ static void convertSeed6(std::vector<CAddress> &vSeedsOut, const SeedSpec6 *data
92
93
class CMainParams : public CChainParams {
93
94
public:
94
95
CMainParams () {
95
- strNetworkID = " main" ;
96
-
97
96
// Blocks 0 - 144999 are conventional difficulty calculation
98
- consensus.nSubsidyHalvingInterval = 500000 ;
99
- consensus.nMajorityEnforceBlockUpgrade = 750 ;
100
- consensus.nMajorityRejectBlockOutdated = 950 ;
101
- consensus.nMajorityWindow = 1000 ;
102
- consensus.BIP34Height = 99324612 ;
103
- consensus.BIP34Hash = uint256S (" 0x4bd3308d384e80094e4659f9a3245e6f444688edbec0ad88b9a5dfd4be87454e" );
104
- consensus.BIP65Height = 99324613 ; //
105
- consensus.BIP66Height = 99324613 ; // 80d1364201e5df97e696c03bdd24dc885e8617b9de51e453c10a4f629b1e797a - this is the last block that could be v2, 1900 blocks past the last v2 block
106
- consensus.powLimit = uint256S (" 0x00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 20;
107
- consensus.fDigishieldDifficultyCalculation = false ;
108
- consensus.fPowAllowMinDifficultyBlocks = false ;
109
- consensus.fPowAllowDigishieldMinDifficultyBlocks = false ;
110
- consensus.fPowNoRetargeting = false ;
111
- consensus.nRuleChangeActivationThreshold = 750 ; // 95% of 10,080
112
- consensus.nMinerConfirmationWindow = 1000 ; // 60 * 24 * 7 = 10,080 blocks, or one week
113
- consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].bit = 28 ;
114
- consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601 ; // January 1, 2008
115
- consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999 ; // December 31, 2008
97
+ nMajorityEnforceBlockUpgrade = 750 ;
98
+ nMajorityRejectBlockOutdated = 950 ;
99
+ nMajorityWindow = 1000 ;
100
+ BIP34Height = 99324612 ;
101
+ BIP34Hash = uint256 (" 0x4bd3308d384e80094e4659f9a3245e6f444688edbec0ad88b9a5dfd4be87454e" );
102
+ BIP65Height = 99324613 ; //
103
+ BIP66Height = 99324613 ; // 80d1364201e5df97e696c03bdd24dc885e8617b9de51e453c10a4f629b1e797a - this is the last block that could be v2, 1900 blocks past the last v2 block
104
+ powLimit = CBigNum (~uint256 (0 ) >> 20 );
105
+ fDigishieldDifficultyCalculation = false ;
106
+ fPowAllowMinDifficultyBlocks = false ;
107
+ fPowAllowDigishieldMinDifficultyBlocks = false ;
108
+ fPowNoRetargeting = false ;
109
+ nRuleChangeActivationThreshold = 750 ; // 95% of 10,080
110
+ .nMinerConfirmationWindow = 1000 ; // 60 * 24 * 7 = 10,080 blocks, or one week
111
+ vDeployments[DEPLOYMENT_TESTDUMMY].bit = 28 ;
112
+ vDeployments[DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601 ; // January 1, 2008
113
+ vDeployments[DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999 ; // December 31, 2008
116
114
117
115
// Deployment of BIP68, BIP112, and BIP113.
118
116
// XXX: BIP heights and hashes all need to be updated to Nyancoin values
119
- consensus. vDeployments [Consensus::DEPLOYMENT_CSV].bit = 0 ;
120
- consensus. vDeployments [Consensus::DEPLOYMENT_CSV].nStartTime = 1612942090 ; //
121
- consensus. vDeployments [Consensus::DEPLOYMENT_CSV].nTimeout = 1613546890 ; //
117
+ vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0 ;
118
+ vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1612942090 ; //
119
+ vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1613546890 ; //
122
120
123
121
// Deployment of SegWit (BIP141, BIP143, and BIP147)
124
- consensus. vDeployments [Consensus::DEPLOYMENT_SEGWIT].bit = 1 ;
125
- consensus. vDeployments [Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1612942090 ; //
126
- consensus. vDeployments [Consensus::DEPLOYMENT_SEGWIT].nTimeout = 0 ; // Disabled
122
+ vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1 ;
123
+ vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1612942090 ; //
124
+ vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 0 ; // Disabled
127
125
128
126
// The best chain should have at least this much work.
129
- consensus. nMinimumChainWork = uint256S (" 0x00000000000000000000000000000000000000000000000000fd6e84dd5364d4" ); // Block 11461900
127
+ nMinimumChainWork = uint256 (" 0x00000000000000000000000000000000000000000000000000fd6e84dd5364d4" ); // Block 11461900
130
128
131
129
// By default assume that the signatures in ancestors of this block are valid.
132
- consensus. defaultAssumeValid = uint256S (" 0xb477d9bc0721a1b96547495404583d68123f471fdd1d4058a9adff2fa7452298" ); // Block 11461900
130
+ defaultAssumeValid = uint256 (" 0xb477d9bc0721a1b96547495404583d68123f471fdd1d4058a9adff2fa7452298" ); // Block 11461900
133
131
134
132
// The message start string is designed to be unlikely to occur in normal data.
135
133
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce
@@ -239,14 +237,19 @@ class CTestNetParams : public CMainParams {
239
237
vSeeds.push_back (CDNSSeedData (" seed01" , " seed01.litedogeofficial.org" ));
240
238
vSeeds.push_back (CDNSSeedData (" seed02" , " seed02.litedogeofficial.org" ));
241
239
vSeeds.push_back (CDNSSeedData (" seed03" , " seed03.litedogeofficial.org" ));
240
+ vSeeds.push_back (CDNSSeedData (" seed04" , " seed04.litedogeofficial.org" ));
241
+ vSeeds.push_back (CDNSSeedData (" seed05" , " seed05.litedogeofficial.org" ));
242
+ vSeeds.push_back (CDNSSeedData (" seed06" , " seed06.litedogeofficial.org" ));
243
+ vSeeds.push_back (CDNSSeedData (" seed07" , " seed07.litedogeofficial.org" ));
244
+ vSeeds.push_back (CDNSSeedData (" seed08" , " seed08.litedogeofficial.org" ));
242
245
vSeeds.push_back (CDNSSeedData (" lab-support-node0" , " ldoge.nerdlabs001.com" ));
243
246
vSeeds.push_back (CDNSSeedData (" lab-support-node1" , " ldoge.nerdlabs001.com" ));
244
247
245
- base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char >(1 ,111 );
246
- base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char >(1 ,196 );
247
- base58Prefixes[SECRET_KEY] = std::vector<unsigned char >(1 ,239 );
248
- base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of (0x04 )(0x35 )( 0x87 )( 0xCF ).convert_to_container <std::vector<unsigned char > >();
249
- base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of (0x04 )(0x35 )( 0x83 )( 0x94 ).convert_to_container <std::vector<unsigned char > >();
248
+ base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char >(1 ,90 );
249
+ base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char >(1 ,8 );
250
+ base58Prefixes[SECRET_KEY] = std::vector<unsigned char >(1 ,171 );
251
+ base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of (0x04 )(0x88 )( 0xB2 )( 0x1E ).convert_to_container <std::vector<unsigned char > >();
252
+ base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of (0x04 )(0x88 )( 0xAD )( 0xE4 ).convert_to_container <std::vector<unsigned char > >();
250
253
251
254
convertSeed6 (vFixedSeeds, pnSeed6_test, ARRAYLEN (pnSeed6_test));
252
255
0 commit comments