diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 4f063c606..9ecf9ab21 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -743,6 +743,7 @@ void iguana_coinloop(void *arg) iguana_recvalloc(coin,coin->longestchain + 100000); if ( coin->RELAYNODE != 0 || coin->VALIDATENODE != 0 ) flag += iguana_processrecv(myinfo,coin); + iguana_jsonQ(); } coin->idletime = (uint32_t)time(NULL); } diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index 2dfb2c98f..d86607d11 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -426,7 +426,7 @@ char *iguana_request_andwait(queue_t *Q,cJSON **vinsp,char *reqstr,uint32_t rawt if ( rawtxtag == ptr->rawtxtag ) { rawtx = clonestr(ptr->rawtx); - //printf("got RAWTX.(%s)\n",rawtx); + printf("got RAWTX.(%s)\n",rawtx); if ( vinsp != 0 ) *vinsp = ptr->vins; else free_json(ptr->vins); @@ -457,12 +457,12 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,uint32_t rawtxtag,char *sym if ( (rawtx= iguana_calcrawtx(myinfo,coin,vinsp,txobj,satoshis,changeaddr,txfee,addresses,minconf)) != 0 && *vinsp != 0 ) { free_json(txobj); - //printf("return rawtx.(%s) vins.%p\n",rawtx,*vinsp); + printf("return rawtx.(%s) vins.%p\n",rawtx,*vinsp); return(rawtx); } } } - //printf("fall through case\n"); + printf("fall through case\n"); if ( txobj != 0 ) free_json(txobj); if ( addresses != 0 ) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 7d502830c..160d73faf 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1605,7 +1605,6 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin //if ( strcmp("BTCD",coin->symbol) == 0 ) // instantdex_update(SuperNET_MYINFO(0)); - iguana_jsonQ(); if ( hwmheight != coin->blocks.hwmchain.height ) flag = 1; return(flag); diff --git a/iguana/main.c b/iguana/main.c index 8b98a4922..f2283cf93 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1159,7 +1159,7 @@ void iguana_appletests(struct supernet_info *myinfo) //int32_t iguana_schnorr_test(void *ctx); //iguana_schnorr_test(myinfo->ctx); getchar(); - if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":1,\"VALIDATE\":1,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) + if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) { free(str); if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTC\",\"active\":0,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 )