From b42dad372b11c16110ebc47d9c4114c88b058db9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 29 May 2017 13:29:31 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 21d8b8a8e..604e58aa0 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -46,13 +46,14 @@ char *blocktrail_listtransactions(char *symbol,char *coinaddr,int32_t num,int32_ cJSON *bitcoin_json(struct iguana_info *coin,char *method,char *params) { - static void *cHandle; + //static void *cHandle; char *retstr; cJSON *retjson = 0; if ( coin != 0 ) { printf("issue.(%s, %s, %s, %s, %s)\n",coin->symbol,coin->serverport,coin->userpass,method,params); - retstr = curl_post(&cHandle,coin->serverport,coin->userpass,params,method,0,0,0); + //retstr = curl_post(&cHandle,coin->serverport,coin->userpass,params,method,0,0,0); //retstr = bitcoind_passthru(coin->symbol,coin->serverport,coin->userpass,method,params); + retstr = bitcoind_RPC(0,"",coin->serverport,0,method,params); if ( retstr != 0 && retstr[0] != 0 ) { printf("%s: %s.%s -> (%s)\n",coin->symbol,method,params,retstr);