Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f4603214f5
  1. 3
      basilisk/basilisk_swap.c

3
basilisk/basilisk_swap.c

@ -311,12 +311,11 @@ struct basilisk_swap *bitcoin_swapinit(struct supernet_info *myinfo,struct basil
printf("neither src nor dest error\n"); printf("neither src nor dest error\n");
return(0); return(0);
} }
if ( bits256_nonz(myinfo->persistent_priv) == 0 || instantdex_pubkeyargs(myinfo,swap,2 + INSTANTDEX_DECKSIZE,myinfo->persistent_priv,swap->myhash,0x02+swap->iambob) != 2 + INSTANTDEX_DECKSIZE ) if ( bits256_nonz(myinfo->persistent_priv) == 0 )//|| instantdex_pubkeyargs(myinfo,swap,2 + INSTANTDEX_DECKSIZE,myinfo->persistent_priv,swap->myhash,0x02+swap->iambob) != 2 + INSTANTDEX_DECKSIZE )
{ {
printf("couldnt generate privkeys\n"); printf("couldnt generate privkeys\n");
return(0); return(0);
} }
return(swap);
if ( swap->iambob != 0 ) if ( swap->iambob != 0 )
{ {
basilisk_rawtx_setparms(myinfo,swap,&swap->myfee,swap->bobcoin,0,0,swap->bobsatoshis/INSTANTDEX_DECKSIZE,0,0); basilisk_rawtx_setparms(myinfo,swap,&swap->myfee,swap->bobcoin,0,0,swap->bobsatoshis/INSTANTDEX_DECKSIZE,0,0);

Loading…
Cancel
Save