@@ -118,7 +118,7 @@ class CMainParams : public CChainParams {
118118
119119 genesis = CreateGenesisBlock (1231006505 , 2083236893 , 0x1d00ffff , 1 , 50 * COIN);
120120 consensus.hashGenesisBlock = genesis.GetHash ();
121- consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , false );
121+ consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , true );
122122 // Serialization will not match if true
123123 if (!consensus.blockheight_in_header ) {
124124 assert (consensus.hashGenesisBlock == uint256S (" 0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" ));
@@ -231,7 +231,7 @@ class CTestNetParams : public CChainParams {
231231
232232 genesis = CreateGenesisBlock (1296688602 , 414098458 , 0x1d00ffff , 1 , 50 * COIN);
233233 consensus.hashGenesisBlock = genesis.GetHash ();
234- consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , false );
234+ consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , true );
235235 // Serialization will not match if true
236236 if (!consensus.blockheight_in_header ) {
237237 assert (consensus.hashGenesisBlock == uint256S (" 0x000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943" ));
@@ -326,7 +326,7 @@ class CRegTestParams : public CChainParams {
326326
327327 genesis = CreateGenesisBlock (1296688602 , 2 , 0x207fffff , 1 , 50 * COIN);
328328 consensus.hashGenesisBlock = genesis.GetHash ();
329- consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , false );
329+ consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , true );
330330 // Serialization will not match if true
331331 if (!consensus.blockheight_in_header ) {
332332 assert (consensus.hashGenesisBlock == uint256S (" 0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206" ));
@@ -434,7 +434,7 @@ class CCustomParams : public CRegTestParams {
434434
435435 // Note: This gArg is accessed one more time in block.h for serialization to avoid
436436 // circular dependency
437- consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , false );
437+ consensus.blockheight_in_header = gArgs .GetBoolArg (" -con_blockheightinheader" , true );
438438
439439 // All non-zero coinbase outputs must go to this scriptPubKey
440440 std::vector<unsigned char > man_bytes = ParseHex (gArgs .GetArg (" -con_mandatorycoinbase" , " " ));
0 commit comments