|
|
@ -81,7 +81,7 @@ extern uint8_t NOTARY_PUBKEY33[33]; |
|
|
|
extern int32_t KOMODO_LOADINGBLOCKS,KOMODO_LONGESTCHAIN,KOMODO_INSYNC,KOMODO_CONNECTING,KOMODO_EXTRASATOSHI; |
|
|
|
int32_t KOMODO_NEWBLOCKS; |
|
|
|
int32_t komodo_block2pubkey33(uint8_t *pubkey33,CBlock *block); |
|
|
|
void komodo_broadcast(CBlock *pblock,int32_t limit); |
|
|
|
//void komodo_broadcast(CBlock *pblock,int32_t limit);
|
|
|
|
bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey); |
|
|
|
void komodo_setactivation(int32_t height); |
|
|
|
|
|
|
@ -3987,10 +3987,10 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock * |
|
|
|
KOMODO_INSYNC = (int32_t)pindexNew->GetHeight(); |
|
|
|
else KOMODO_INSYNC = 0; |
|
|
|
//fprintf(stderr,"connect.%d insync.%d ASSETCHAINS_SAPLING.%d\n",(int32_t)pindexNew->GetHeight(),KOMODO_INSYNC,ASSETCHAINS_SAPLING);
|
|
|
|
if ( KOMODO_INSYNC != 0 ) //ASSETCHAINS_SYMBOL[0] == 0 &&
|
|
|
|
/*if ( KOMODO_INSYNC != 0 ) //ASSETCHAINS_SYMBOL[0] == 0 &&
|
|
|
|
komodo_broadcast(pblock,8); |
|
|
|
else if ( ASSETCHAINS_SYMBOL[0] != 0 ) |
|
|
|
komodo_broadcast(pblock,4); |
|
|
|
komodo_broadcast(pblock,4);*/ |
|
|
|
if ( ASSETCHAINS_SAPLING <= 0 && pindexNew->nTime > KOMODO_SAPLING_ACTIVATION - 24*3600 ) |
|
|
|
komodo_activate_sapling(pindexNew); |
|
|
|
return true; |
|
|
|