Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d431be22e4
  1. 4
      iguana/swaps/iguana_BTCswap.c

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

Loading…
Cancel
Save