Merge pull request #971 from letolabs/ac_private_tests

Tests for ac_private=1
This commit is contained in:
jl777
2018-11-23 20:22:37 -11:00
committed by GitHub
2 changed files with 97 additions and 0 deletions

View File

@@ -3820,6 +3820,11 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex)
height = pindex->GetHeight();
blocktime = (uint32_t)pindex->nTime;
fprintf(stderr,"komodo_activate_sapling.%d starting blocktime %u cmp.%d\n",height,blocktime,blocktime > KOMODO_SAPLING_ACTIVATION);
// avoid trying unless we have at least 30 blocks
if (height < 30)
return(0);
for (i=0; i<30; i++)
{
if ( (prev= pindex->pprev) == 0 )