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); }