From 440633b602b6e194a8265f0e82936764df0eac5b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 2 Jul 2016 20:16:03 -0300 Subject: [PATCH] test --- basilisk/basilisk_swap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 48cedc773..9eb4c0ee6 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -99,7 +99,7 @@ int32_t instantdex_pubkeyargs(struct supernet_info *myinfo,struct basilisk_swap memcpy(swap->mypubs[n].bytes,pubkey+1,sizeof(bits256)); } } - if ( swap->numpubs < INSTANTDEX_DECKSIZE ) + if ( m < INSTANTDEX_DECKSIZE ) { swap->privkeys[m] = privkey; calc_rmd160_sha256(secret160,privkey.bytes,sizeof(privkey)); @@ -316,6 +316,7 @@ struct basilisk_swap *bitcoin_swapinit(struct supernet_info *myinfo,struct basil printf("couldnt generate privkeys\n"); return(0); } +return(swap); if ( swap->iambob != 0 ) { basilisk_rawtx_setparms(myinfo,swap,&swap->myfee,swap->bobcoin,0,0,swap->bobsatoshis/INSTANTDEX_DECKSIZE,0,0);