Browse Source

Test

etomic
jl777 8 years ago
parent
commit
120c4c05ac
  1. 2
      .gitignore
  2. 6
      basilisk/basilisk_swap.c

2
.gitignore

@ -362,3 +362,5 @@ iguana/DB/SWAPS/3462690702-2419919594
iguana/DB/SWAPS/543051861-1532200070
iguana/DB/SWAPS/442294237-2721246052
iguana/DB/SWAPS/1247864366-3828803132

6
basilisk/basilisk_swap.c

@ -2213,13 +2213,13 @@ int32_t basilisk_swapiteration(struct supernet_info *myinfo,struct basilisk_swap
else
{
tradebot_swap_balancingtrade(myinfo,swap,1);
printf("Bob spends alicepayment\n");
printf("Bob spends alicepayment aliceconfirms.%d\n",swap->I.aliceconfirms);
swap->I.statebits |= 0x40000;
while ( basilisk_numconfirms(myinfo,swap,&swap->bobspend) < swap->I.aliceconfirms )
if ( basilisk_numconfirms(myinfo,swap,&swap->bobspend) >= swap->I.aliceconfirms )
{
printf("bobspend confirmed\n");
swap->I.statebits |= 0x80000;
printf("Bob confirms spend of Alice's payment\n");
printf("Bob confirming spend of Alice's payment\n");
sleep(DEX_SLEEP);
}
retval = 1;

Loading…
Cancel
Save