From dedd4229a9b38befc5967039e9198c66be9ec3d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 May 2016 21:22:25 -0500 Subject: [PATCH] test --- iguana/SuperNET_category.c | 6 +++--- iguana/btc | 2 +- iguana/swaps/iguana_BTCswap.c | 4 ++-- iguana/tests/addnode | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iguana/SuperNET_category.c b/iguana/SuperNET_category.c index 1c41aaee6..a1c18628d 100755 --- a/iguana/SuperNET_category.c +++ b/iguana/SuperNET_category.c @@ -207,7 +207,7 @@ char *bitcoin_hexmsg(struct supernet_info *myinfo,struct category_info *cat,void char *method="",*agent="",*retstr = 0; int32_t i,j; cJSON *json,*valsobj; struct iguana_info *coin=0; struct iguana_peer *addr; if ( (json= cJSON_Parse(ptr)) != 0 ) { - //printf("bitcoinprocess.(%s)\n",jprint(json,0)); + printf("bitcoinprocess.(%s)\n",jprint(json,0)); agent = jstr(json,"agent"); method = jstr(json,"method"); valsobj = jobj(json,"vals"); @@ -231,7 +231,7 @@ char *bitcoin_hexmsg(struct supernet_info *myinfo,struct category_info *cat,void } if ( retstr == 0 ) return(0); - //printf("RELAY will return.(%s)\n",retstr); + printf("RELAY will return.(%s)\n",retstr); for (j=0; jsupernet != 0 && strcmp(addr->ipaddr,remoteaddr) == 0 ) { - //printf("send back rawtx_result addr->supernet.%u to (%s)\n",addr->supernet,addr->ipaddr); + printf("send back rawtx_result addr->supernet.%u to (%s)\n",addr->supernet,addr->ipaddr); iguana_send_supernet(addr,retstr,0); free_json(json); return(retstr); diff --git a/iguana/btc b/iguana/btc index 7a6954cb2..6813f8737 100755 --- a/iguana/btc +++ b/iguana/btc @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":5,\"poll\":50,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":8,\"endpend\":1,\"services\":129,\"maxpeers\":256,\"RELAY\":0,\"VALIDATE\":0}" +curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":5,\"poll\":50,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":8,\"endpend\":1,\"services\":128,\"maxpeers\":32,\"RELAY\":0,\"VALIDATE\":0}" diff --git a/iguana/swaps/iguana_BTCswap.c b/iguana/swaps/iguana_BTCswap.c index 377b00168..c7bde392f 100755 --- a/iguana/swaps/iguana_BTCswap.c +++ b/iguana/swaps/iguana_BTCswap.c @@ -197,10 +197,10 @@ struct bitcoin_statetx *instantdex_signtx(char *str,struct supernet_info *myinfo jaddnum(valsobj,"rawtxtag",rawtxtag); jaddnum(valsobj,"locktime",locktime); argjson = cJSON_CreateObject(); - jaddnum(argjson,"timeout",100); + jaddnum(argjson,"timeout",60000); if ( (retstr= iguana_rawtx(myinfo,coin,argjson,0,coin->changeaddr,addresses,valsobj,scriptstr)) != 0 ) { - printf("feetx got.(%s)\n",retstr); + printf("%s got.(%s)\n",str,retstr); flag = 0; if ( (retjson= cJSON_Parse(retstr)) != 0 ) { diff --git a/iguana/tests/addnode b/iguana/tests/addnode index 7a9763c15..9a7ca1b0d 100755 --- a/iguana/tests/addnode +++ b/iguana/tests/addnode @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"BTCD\",\"ipaddr\":\"148.251.68.48\"}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"BTCD\",\"ipaddr\":\"78.47.196.146\"}"