From b81c171faf34647450c5a47eb25c5ba8fdcbc5e0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 May 2016 20:31:39 -0500 Subject: [PATCH] test --- crypto777/iguana_OS.c | 9 ++++----- iguana/SuperNET.c | 2 +- iguana/swaps/iguana_BTCswap.c | 8 +++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index 8c49ccdfa..55f9240b9 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -535,13 +535,12 @@ void OS_remove_directory(char *dirname) //printf("error doing (%s)\n",buf); sprintf(buf,"rm %s/*",dirname); if ( system(buf) != 0 ) - printf("error doing (%s)\n",buf); - else { - sprintf(buf,"rmdir %s",dirname); - if ( system(buf) != 0 ) - printf("second error doing (%s)\n",buf); + //printf("error doing (%s)\n",buf); } + sprintf(buf,"rmdir %s",dirname); + if ( system(buf) != 0 ) + printf("second error doing (%s)\n",buf); } } diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 1e5f3b2a9..0cb87e723 100755 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -582,7 +582,7 @@ char *SuperNET_DHTsend(struct supernet_info *myinfo,uint64_t destipbits,bits256 } else { - printf("DHT send\n"); + //printf("DHT send\n"); SuperNET_hexmsgadd(myinfo,categoryhash,subhash,hexmsg,tai_now(),0); } jsonstr = jprint(json,1); diff --git a/iguana/swaps/iguana_BTCswap.c b/iguana/swaps/iguana_BTCswap.c index cbf9059ed..741f7c175 100755 --- a/iguana/swaps/iguana_BTCswap.c +++ b/iguana/swaps/iguana_BTCswap.c @@ -414,7 +414,8 @@ int32_t instantdex_pubkeyargs(struct supernet_info *myinfo,struct bitcoin_swapin { char buf[3]; int32_t i,n,m,len=0; bits256 pubi; uint64_t txid; uint8_t secret160[20],pubkey[33]; sprintf(buf,"%c0",'A' - 0x02 + firstbyte); - printf(">>>>>> start generating %s\n",buf); + if ( numpubs > 2 ) + printf(">>>>>> start generating %s\n",buf); for (i=n=m=0; iprivkeys[n],pubkey,privkey,hash); @@ -440,7 +441,8 @@ int32_t instantdex_pubkeyargs(struct supernet_info *myinfo,struct bitcoin_swapin } n++; } - printf("n.%d m.%d len.%d numpubs.%d\n",n,m,len,swap->numpubs); + if ( n > 2 || m > 2 ) + printf("n.%d m.%d len.%d numpubs.%d\n",n,m,len,swap->numpubs); return(n); } @@ -1053,7 +1055,7 @@ void instantdex_statemachine_iter(struct supernet_info *myinfo,struct exchange_i swap->myfee = instantdex_feetx(myinfo,&swap->mine,swap,iguana_coinfind("BTC")); while ( (ptr= queue_dequeue(&swap->eventsQ,0)) != 0 ) { - printf("deQ arg.%p new.%p\n",ptr->argjson,ptr->newjson); + //printf("deQ arg.%p new.%p\n",ptr->argjson,ptr->newjson); if ( (str= instantdex_statemachine(BTC_states,BTC_numstates,myinfo,exchange,swap,ptr->cmd,ptr->argjson,ptr->newjson,ptr->serdata,ptr->serdatalen)) != 0 ) free(str); if ( ptr->argjson != 0 )