Autoset cc for ccEnableHeights[0] !=0

This commit is contained in:
jl777
2019-07-18 05:11:06 -11:00
parent e14ae0985a
commit 49b564f18f

View File

@@ -2277,10 +2277,18 @@ void komodo_args(char *argv0)
//printf("created (%s)\n",fname); //printf("created (%s)\n",fname);
} else printf("error creating (%s)\n",fname); } else printf("error creating (%s)\n",fname);
#endif #endif
if ( KOMODO_CCACTIVATE != 0 && ASSETCHAINS_CC < 2 ) if ( ASSETCHAINS_CC < 2 )
{ {
ASSETCHAINS_CC = 2; if ( KOMODO_CCACTIVATE != 0 )
fprintf(stderr,"smart utxo CC contracts will activate at height.%d\n",KOMODO_CCACTIVATE); {
ASSETCHAINS_CC = 2;
fprintf(stderr,"smart utxo CC contracts will activate at height.%d\n",KOMODO_CCACTIVATE);
}
else if ( ccEnableHeights[0] != 0 )
{
ASSETCHAINS_CC = 2;
fprintf(stderr,"smart utxo CC contract %d will activate at height.%d\n",ccEnableHeights[0],ccEnableHeights[1]);
}
} }
} }
else else