From 2728db5020333b9afc1e82d2e3411ab3e3535e6b Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 9 Oct 2018 13:35:03 +0800 Subject: [PATCH] some prints --- crypto777/bitcoind_RPC.c | 9 +++++---- iguana/dpow/dpow_rpc.c | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index 78c874cbe..d99bea54e 100755 --- a/crypto777/bitcoind_RPC.c +++ b/crypto777/bitcoind_RPC.c @@ -183,7 +183,7 @@ try_again: if ( curl_handle == 0 ) curl_handle = curl_easy_init(); headers = curl_slist_append(0,"Expect:"); - + curl_easy_setopt(curl_handle,CURLOPT_USERAGENT,"mozilla/4.0");//"Mozilla/4.0 (compatible; )"); curl_easy_setopt(curl_handle,CURLOPT_HTTPHEADER, headers); curl_easy_setopt(curl_handle,CURLOPT_URL, url); @@ -275,12 +275,13 @@ try_again: printf( "curl_easy_perform() failed: %s %s.(%s %s), retries: %d\n",curl_easy_strerror(res),debugstr,url,command,numretries); //printf("Maximum number of retries exceeded!\n"); free(retstr); + printf("retstr freeed\n", ); return(0); } free(retstr); sleep((1<symbol,buf); + } // else printf("%s null retstr from (%s)n",coin->symbol,buf); } + printf("bitcoind passthfu failed on lock\n", ); return(0); } @@ -491,8 +492,9 @@ char *dpow_unlockunspent(struct supernet_info *myinfo,struct iguana_info *coin,c { //printf("RESULT.(%s)\n",retstr); return(retstr); - } else printf("%s null retstr from (%s)n",coin->symbol,buf); + } //else printf("%s null retstr from (%s)n",coin->symbol,buf); } + printf("bitcoind passthfu failed on unlock\n", ); return(0); }