diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 02ab894a9..0b454e2c0 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -492,13 +492,14 @@ void UpdateNetworkUpgradeParameters(Consensus::UpgradeIndex idx, int nActivation int32_t MAX_BLOCK_SIZE(int32_t height) { - int32_t saplinght = pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight; + // this codebase requires sapling activation at height=1 + int32_t saplinght = 1; // pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight; //fprintf(stderr,"MAX_BLOCK_SIZE %d vs. %d\n",height,mainParams.consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight); - if ( height <= 0 || (saplinght > 0 && height >= saplinght) ) - { + //if ( height <= 0 || (saplinght > 0 && height >= saplinght) ) + //{ return(_MAX_BLOCK_SIZE); - } - else return(2000000); + //} + //else return(2000000); } // Change the Hush blocktime at run-time(!)