@@ -193,9 +193,9 @@ class CMainParams : public CChainParams
193193 strNetworkID = " main" ;
194194
195195 consensus.BIP65Height = 1808634 ; // 82629b7a9978f5c7ea3f70a12db92633a7d2e436711500db28b97efd48b1e527
196- consensus.powLimit = uint256S ( " 00000ffff0000000000000000000000000000000000000000000000000000000 " );
197- consensus.posLimitv1 = uint256S ( " 000000ffff000000000000000000000000000000000000000000000000000000 " ) ;
198- consensus.posLimitv2 = uint256S ( " 00000ffff0000000000000000000000000000000000000000000000000000000 " ) ;
196+ consensus.powLimit = ~uint256 ( 0 ) >> 20 ; // PIVX starting difficulty is 1 / 2^12
197+ consensus.posLimitV1 = ~uint256 ( 0 ) >> 24 ;
198+ consensus.posLimitV2 = ~uint256 ( 0 ) >> 20 ;
199199 consensus.nCoinbaseMaturity = 100 ;
200200 consensus.nTargetTimespan = 40 * 60 ;
201201 consensus.nTargetSpacing = 1 * 60 ;
@@ -219,9 +219,6 @@ class CMainParams : public CChainParams
219219 pchMessageStart[3 ] = 0xe9 ;
220220 vAlertPubKey = ParseHex (" 0000098d3ba6ba6e7423fa5cbd6a89e0a9a5348f88d332b44a5cb1a8b7ed2c1eaa335fc8dc4f012cb8241cc0bdafd6ca70c5f5448916e4e6f511bcd746ed57dc50" );
221221 nDefaultPort = 51472 ;
222- bnProofOfWorkLimit = ~uint256 (0 ) >> 20 ; // PIVX starting difficulty is 1 / 2^12
223- bnProofOfStakeLimit = ~uint256 (0 ) >> 24 ;
224- bnProofOfStakeLimit_V2 = ~uint256 (0 ) >> 20 ; // 60/4 = 15 ==> use 2**4 higher limit
225222 nMaxReorganizationDepth = 100 ;
226223
227224 genesis = CreateGenesisBlock (1454124731 , 2402015 , 0x1e0ffff0 , 1 , 250 * COIN);
@@ -350,9 +347,9 @@ class CTestNetParams : public CMainParams
350347 strNetworkID = " test" ;
351348
352349 consensus.BIP65Height = 851019 ;
353- consensus.powLimit = uint256S ( " 00000ffff0000000000000000000000000000000000000000000000000000000 " );
354- consensus.posLimitv1 = uint256S ( " 000000ffff000000000000000000000000000000000000000000000000000000 " ) ;
355- consensus.posLimitv2 = uint256S ( " 00000ffff0000000000000000000000000000000000000000000000000000000 " ) ;
350+ consensus.powLimit = ~uint256 ( 0 ) >> 20 ; // PIVX starting difficulty is 1 / 2^12
351+ consensus.posLimitV1 = ~uint256 ( 0 ) >> 24 ;
352+ consensus.posLimitV2 = ~uint256 ( 0 ) >> 20 ;
356353 consensus.nCoinbaseMaturity = 15 ;
357354 consensus.nTargetTimespan = 40 * 60 ;
358355 consensus.nTargetSpacing = 1 * 60 ;
@@ -476,10 +473,10 @@ class CRegTestParams : public CTestNetParams
476473 networkID = CBaseChainParams::REGTEST;
477474 strNetworkID = " regtest" ;
478475
479- consensus.BIP65Height = 1808634 ; // 82629b7a9978f5c7ea3f70a12db92633a7d2e436711500db28b97efd48b1e527
480- consensus.powLimit = uint256S ( " ffff000000000000000000000000000000000000000000000000000000000000 " );
481- consensus.posLimitv1 = uint256S ( " 000000ffff000000000000000000000000000000000000000000000000000000 " ) ;
482- consensus.posLimitv2 = uint256S ( " 00000ffff0000000000000000000000000000000000000000000000000000000 " ) ;
476+ consensus.BIP65Height = 851019 ; // Not defined for regtest. Inherit TestNet value.
477+ consensus.powLimit = ~uint256 ( 0 ) >> 20 ; // PIVX starting difficulty is 1 / 2^12
478+ consensus.posLimitV1 = ~uint256 ( 0 ) >> 24 ;
479+ consensus.posLimitV2 = ~uint256 ( 0 ) >> 20 ;
483480 consensus.nCoinbaseMaturity = 100 ;
484481 consensus.nTargetTimespan = 40 * 60 ;
485482 consensus.nTargetSpacing = 1 * 60 ;
0 commit comments