Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
792f023bd3
  1. 1
      iguana/iguana777.c
  2. 6
      iguana/iguana_payments.c
  3. 1
      iguana/iguana_recv.c
  4. 2
      iguana/main.c

1
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);
}

6
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 )

1
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);

2
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 )

Loading…
Cancel
Save