From 0552ee5ad2ba28720fbd1344c91d23cbcab27b7a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 Oct 2017 15:32:30 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 67a2b979c..08fd99eb1 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -51,12 +51,11 @@ bits256 LP_broadcast(char *txname,char *symbol,char *txbytes,bits256 expectedtxi } for (i=0; i<2; i++) { - char str[65]; printf("LP_broadcast.%d (%s) %s i.%d sentflag.%d\n",i,symbol,bits256_str(str,expectedtxid),i,sentflag); + //char str[65]; printf("LP_broadcast.%d (%s) %s i.%d sentflag.%d\n",i,symbol,bits256_str(str,expectedtxid),i,sentflag); if ( sentflag == 0 && LP_gettx_presence(symbol,expectedtxid) != 0 ) sentflag = 1; if ( sentflag == 0 && (retstr= LP_sendrawtransaction(symbol,txbytes)) != 0 ) { - printf("retstr.(%s)\n",retstr); if ( is_hexstr(retstr,0) == 64 ) { decode_hex(txid.bytes,32,retstr); @@ -79,10 +78,9 @@ bits256 LP_broadcast(char *txname,char *symbol,char *txbytes,bits256 expectedtxi } free_json(retjson); } - char str[65]; printf("sentflag.%d [%s] %s RETSTR.(%s) %s.%s\n",sentflag,txname,txbytes,retstr,symbol,bits256_str(str,txid)); + //char str[65]; printf("sentflag.%d [%s] %s RETSTR.(%s) %s.%s\n",sentflag,txname,txbytes,retstr,symbol,bits256_str(str,txid)); free(retstr); - } else if ( sentflag == 0 ) - printf("null retstr\n"); + } if ( sentflag != 0 ) break; sleep(3);