@@ -93,8 +93,8 @@ class CMainParams : public CChainParams {
9393 consensus.BIP34Height = 0 ;
9494 consensus.BIP34Hash = uint256S (" 0x00000cd6bde619b2c3b23ad2e384328a450a37fa28731debf748c3b17f91f97d" );
9595 consensus.powLimit = uint256S (" 00000fffff000000000000000000000000000000000000000000000000000000" );
96- consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day
97- consensus.nPowTargetSpacing = 2.5 * 60 ; // Gincoin: 2.5 minutes
96+ consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day // used only for KGW and Bitcoin Diff
97+ consensus.nPowTargetSpacing = 2.5 * 60 ; // Gincoin: 2.5 minutes // soft change to nPowApr2018TargetSpacing after mPowDGWReconfigureApr2018Height
9898 consensus.fPowAllowMinDifficultyBlocks = false ;
9999 consensus.fPowNoRetargeting = false ;
100100 consensus.nPowKGWHeight = 15200 ; // not used
@@ -117,11 +117,15 @@ class CMainParams : public CChainParams {
117117 consensus.vDeployments [Consensus::DEPLOYMENT_DIP0001].nWindowSize = 4032 ;
118118 consensus.vDeployments [Consensus::DEPLOYMENT_DIP0001].nThreshold = 3226 ; // 80% of 4032
119119
120+ // Consensus Update Apr 2018
121+ consensus.mPowDGWReconfigureApr2018Height = 23750 ;
122+ consensus.nPowApr2018TargetSpacing = 2 * 60 ;
123+
120124 // The best chain should have at least this much work.
121- consensus.nMinimumChainWork = uint256S (" 0x0000000000000000000000000000000000000000000000000000000006500074 " );
125+ consensus.nMinimumChainWork = uint256S (" 0x0000000000000000000000000000000000000000000000000047a222baa2d1fe " );
122126
123127 // By default assume that the signatures in ancestors of this block are valid.
124- consensus.defaultAssumeValid = uint256S (" 0x000001d9726a3d9624b6bd53428b658204333461708f84a520570272c5d7f511 " );
128+ consensus.defaultAssumeValid = uint256S (" 0x00000000000a106c24554e369cdacdb683fd6daef276ca38b1991ad82e74dc63 " );
125129
126130 /* *
127131 * The message start string is designed to be unlikely to occur in normal data.
@@ -181,9 +185,11 @@ class CMainParams : public CChainParams {
181185 ( 0 , consensus.hashGenesisBlock )
182186 ( 20 , uint256S (" 0x000003e547bec8e303a0af407ab1781e1a56ce995d4cb8abd9443d8e89daee94" ))
183187 ( 100 , uint256S (" 0x000001d9726a3d9624b6bd53428b658204333461708f84a520570272c5d7f511" ))
188+ ( 1000 , uint256S (" 0x00000000015079cff402ec1f9d88af43eba786f1a70bed49eca4c96b1786c074" ))
189+ ( 22092 , uint256S (" 0x00000000000a106c24554e369cdacdb683fd6daef276ca38b1991ad82e74dc63" ))
184190 ,
185- 1519397453 , // * UNIX timestamp of last checkpoint block
186- 0 , // * total number of transactions between genesis and last checkpoint
191+ 1522841266 , // * UNIX timestamp of last checkpoint block
192+ 28497 , // * total number of transactions between genesis and last checkpoint
187193 // (the tx=... number in the SetBestChain debug.log lines)
188194 5000 // * estimated number of transactions per day after checkpoint
189195 };
@@ -218,8 +224,8 @@ class CTestNetParams : public CChainParams {
218224 consensus.BIP34Height = 0 ;
219225 consensus.BIP34Hash = uint256S (" 0x0000070936337da4fa971d46112401d17a7288b57bde0e45fba010b94b2577a9" );
220226 consensus.powLimit = uint256S (" 00000fffff000000000000000000000000000000000000000000000000000000" );
221- consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day
222- consensus.nPowTargetSpacing = 2.5 * 60 ; // Gincoin: 2.5 minutes
227+ consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day // used only for KGW and Bitcoin Diff
228+ consensus.nPowTargetSpacing = 2 * 60 ; // Gincoin: 2 minutes
223229 consensus.fPowAllowMinDifficultyBlocks = true ;
224230 consensus.fPowNoRetargeting = false ;
225231 consensus.nPowKGWHeight = 4001 ; // nPowKGWHeight >= nPowDGWHeight means "no KGW"
@@ -248,6 +254,10 @@ class CTestNetParams : public CChainParams {
248254 // By default assume that the signatures in ancestors of this block are valid.
249255 consensus.defaultAssumeValid = uint256S (" 0x00" );
250256
257+ // Consensus Update Apr 2018
258+ consensus.mPowDGWReconfigureApr2018Height = 1 ;
259+ consensus.nPowApr2018TargetSpacing = 2 * 60 ;
260+
251261 pchMessageStart[0 ] = 0xce ;
252262 pchMessageStart[1 ] = 0xe2 ;
253263 pchMessageStart[2 ] = 0xca ;
@@ -336,8 +346,8 @@ class CRegTestParams : public CChainParams {
336346 consensus.BIP34Height = -1 ; // BIP34 has not necessarily activated on regtest
337347 consensus.BIP34Hash = uint256 ();
338348 consensus.powLimit = uint256S (" 7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" );
339- consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day
340- consensus.nPowTargetSpacing = 2.5 * 60 ; // Gincoin: 2.5 minutes
349+ consensus.nPowTargetTimespan = 24 * 60 * 60 ; // Gincoin: 1 day // used only for KGW and Bitcoin Diff
350+ consensus.nPowTargetSpacing = 2 * 60 ; // Gincoin: 2 minutes
341351 consensus.fPowAllowMinDifficultyBlocks = true ;
342352 consensus.fPowNoRetargeting = true ;
343353 consensus.nPowKGWHeight = 15200 ; // same as mainnet
@@ -360,6 +370,10 @@ class CRegTestParams : public CChainParams {
360370 // By default assume that the signatures in ancestors of this block are valid.
361371 consensus.defaultAssumeValid = uint256S (" 0x00" );
362372
373+ // Consensus Update Apr 2018
374+ consensus.mPowDGWReconfigureApr2018Height = 1 ;
375+ consensus.nPowApr2018TargetSpacing = 2 * 60 ;
376+
363377 pchMessageStart[0 ] = 0xfc ;
364378 pchMessageStart[1 ] = 0xc1 ;
365379 pchMessageStart[2 ] = 0xb7 ;
0 commit comments