Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0760965fad
  1. 6
      .gitignore
  2. 17
      basilisk/basilisk_swap.c

6
.gitignore

@ -268,3 +268,9 @@ iguana/DB/SWAPS/2050938501-203733478
iguana/DB/SWAPS/3434672913-3981690962
iguana/DB/SWAPS/2840127595-1174059534
iguana/DB/SWAPS/2448551545-1211445977
*.alicepayment
*.myfee

17
basilisk/basilisk_swap.c

@ -1578,8 +1578,21 @@ struct basilisk_swap *bitcoin_swapinit(struct supernet_info *myinfo,bits256 priv
free(swap);
return(0);
}
swap->I.bobconfirms = (1*0 + sqrt(dstr(swap->I.bobsatoshis) * .1));
swap->I.aliceconfirms = swap->I.bobconfirms * 3;
if ( strcmp("BTC",swap->bobcoin->symbol) == 0 )
{
swap->I.bobconfirms = (1 + sqrt(dstr(swap->I.bobsatoshis) * .1));
swap->I.aliceconfirms = swap->I.bobconfirms * 3;
}
else if ( strcmp("BTC",swap->alicecoin->symbol) == 0 )
{
swap->I.aliceconfirms = (1 + sqrt(dstr(swap->I.alicesatoshis) * .1));
swap->I.bobconfirms = swap->I.bobconfirms * 3;
}
else
{
swap->I.bobconfirms = 3;
swap->I.aliceconfirms = 3;
}
if ( swap->I.bobconfirms == 0 )
swap->I.bobconfirms = swap->bobcoin->chain->minconfirms;
if ( swap->I.aliceconfirms == 0 )

Loading…
Cancel
Save