From a71ac0a938777382edfe4d3b65c39e0eb4ac0771 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Nov 2018 03:24:55 -1100 Subject: [PATCH] Check for break condition after setting activation --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bcc63e8e3..493ee9f64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3813,13 +3813,13 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex) fprintf(stderr,"komodo_activate_sapling: unexpected non-contiguous ht %d vs %d\n",prevht,height); return(0); } - if ( prevtime < KOMODO_SAPLING_ACTIVATION-3600*24 ) - break; if ( prevtime <= KOMODO_SAPLING_ACTIVATION && blocktime > KOMODO_SAPLING_ACTIVATION ) { activation = height + 60; fprintf(stderr,"%s transition at %d (%d, %u) -> (%d, %u)\n",ASSETCHAINS_SYMBOL,height,prevht,prevtime,height,blocktime); } + if ( prevtime < KOMODO_SAPLING_ACTIVATION-3600*24 ) + break; pindex = prev; height = prevht; blocktime = prevtime;