From d431be22e4a6cbb2b8becfb5ad1973c7a8aadc6e Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 May 2016 00:17:52 -0500 Subject: [PATCH] test --- iguana/swaps/iguana_BTCswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/swaps/iguana_BTCswap.c b/iguana/swaps/iguana_BTCswap.c index f1a8c5151..ce643b29f 100755 --- a/iguana/swaps/iguana_BTCswap.c +++ b/iguana/swaps/iguana_BTCswap.c @@ -840,7 +840,7 @@ cJSON *BTC_gendepositfunc(struct supernet_info *myinfo,struct exchange_info *exc for (i=0; i<20; i++) if ( swap->secretBn[i] != 0 ) break; - if ( i == 20 ) + if ( i != 20 ) { if ( bits256_nonz(swap->pubA0) != 0 && bits256_nonz(swap->pubB0) != 0 ) { @@ -848,7 +848,7 @@ cJSON *BTC_gendepositfunc(struct supernet_info *myinfo,struct exchange_info *exc printf("bobtx deposit couldnt be created\n"); else jaddstr(newjson,"virtevent","depmade"); } else printf("null pubA0.%llx or pubB0.%llx\n",(long long)swap->pubA0.txid,(long long)swap->pubB0.txid); - } else printf("null secretBn.%p\n",swap->secretBn); + } } return(newjson); }