Check for break condition after setting activation

This commit is contained in:
jl777
2018-11-22 03:24:55 -11:00
parent 72b575c488
commit a71ac0a938

View File

@@ -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;