From 41f1604f29e2ce2812dff04d68c19f513642e368 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Nov 2018 00:34:17 -1100 Subject: [PATCH] Syntax fixes --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e78e2e45..caac48829 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3823,9 +3823,9 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex) } if ( activation != 0 ) { - mainParams.consensus.vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight = activation; - mainParams.consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight = activation; - KOMODO_SAPLING = activation; + Params().GetConsensus().vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight = activation; + Params().GetConsensus().vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight = activation; + ASSETCHAINS_SAPLING = activation; fprintf(stderr,"%s sapling activation at %d\n",ASSETCHAINS_SYMBOL,activation); } } @@ -5557,6 +5557,7 @@ bool static LoadBlockIndexDB() progress); EnforceNodeDeprecation(chainActive.Height(), true); + CBlockIndex *pindex; if ( (pindex= chainActive.LastTip()) != 0 ) { fprintf(stderr,"set sapling height, if possible from ht.%d %u\n",(int32_t)pindex->GetHeight(),(uint32_t)pindex->nTime);