diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index 5aae7da4a..ed0f4fde2 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -467,5 +467,6 @@ uint32_t basilisk_requestid(struct basilisk_request *rp); uint32_t basilisk_quoteid(struct basilisk_request *rp); char *bitcoind_passthru(char *coinstr,char *serverport,char *userpass,char *method,char *params); struct iguana_info *LP_coinfind(char *symbol); +void *curl_post(void **cHandlep,char *url,char *userpass,char *postfields,char *hdr0,char *hdr1,char *hdr2,char *hdr3); #endif diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index a28c4d9f4..21d8b8a8e 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -46,11 +46,13 @@ 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; 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 = bitcoind_passthru(coin->symbol,coin->serverport,coin->userpass,method,params); + retstr = curl_post(&cHandle,coin->serverport,coin->userpass,params,method,0,0,0); + //retstr = bitcoind_passthru(coin->symbol,coin->serverport,coin->userpass,method,params); if ( retstr != 0 && retstr[0] != 0 ) { printf("%s: %s.%s -> (%s)\n",coin->symbol,method,params,retstr);