From 5885825e4111367b3bafbd282aaecbaec636e5dd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 29 Oct 2017 21:55:11 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index aeacff432..66735862a 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -173,13 +173,13 @@ char *NXTnodes[] = { "62.75.159.113", "91.44.203.238", "82.114.88.225", "78.63.2 cJSON *LP_NXT_redeems() { char url[1024],*retstr; cJSON *retjson=0; - sprintf(url,"http://%s:7876/nxt?=%%2Fnxt&requestType=getAccountTransactions&account=NXT-MRBN-8DFH-PFMK-A4DBM",NXTnodes[rand() % (sizeof(NXTnodes)/sizeof(*NXTnodes))]); + sprintf(url,"http://%s:7876/nxt?requestType=getAccountTransactions&account=NXT-MRBN-8DFH-PFMK-A4DBM",NXTnodes[rand() % (sizeof(NXTnodes)/sizeof(*NXTnodes))]); if ( (retstr= issue_curlt(url,LP_HTTP_TIMEOUT)) != 0 ) { retjson = cJSON_Parse(retstr); printf("%s\n",retstr); free(retstr); - } + } else printf("%s -> null\n",url); return(retjson); }