Basic test for ac_private chains

This commit is contained in:
Jonathan "Duke" Leto
2018-11-24 08:16:17 +01:00
parent e4d6a53cd0
commit f60ba7d7cb
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 )