Browse Source

Test

etomic
jl777 8 years ago
parent
commit
16a71cec94
  1. 4
      iguana/exchanges/LP_swap.c
  2. 2
      iguana/exchanges/LP_transaction.c

4
iguana/exchanges/LP_swap.c

@ -747,14 +747,14 @@ void LP_aliceloop(void *_swap)
{
while ( LP_numconfirms(swap,&swap->bobpayment) < swap->I.bobconfirms )
{
printf("waiting for bobpayment to confirm\n");
char str[65];printf("waiting for bobpayment to be confirmed %s %s\n",swap->bobcoin.symbol,bits256_str(str,swap->bobpayment.I.signedtxid));
sleep(LP_SWAPSTEP_TIMEOUT);
}
if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x20000,data,maxlen,&swap->alicespend,0x40000,0) == 0 )
printf("error sending alicespend\n");
while ( LP_numconfirms(swap,&swap->alicespend) < swap->I.aliceconfirms )
{
printf("waiting for alicespend to confirm\n");
char str[65];printf("waiting for alicespend to be confirmed %s %s\n",swap->bobcoin.symbol,bits256_str(str,swap->alicespend.I.signedtxid));
sleep(LP_SWAPSTEP_TIMEOUT);
}
LP_swapwait(swap->I.req.requestid,swap->I.req.quoteid,4*3600,60);

2
iguana/exchanges/LP_transaction.c

@ -843,7 +843,7 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch
printf("incomplete signing suppress.%d %s (%s)\n",suppress_pubkeys,name,jprint(vins,0));
if ( signedtx != 0 )
free(signedtx), signedtx = 0;
} else printf("%s -> %s\n",name,bits256_str(str,*signedtxidp));
} else printf("basilisk_swap_bobtxspend %s -> %s\n",name,bits256_str(str,*signedtxidp));
free(rawtxbytes);
} else printf("error making rawtx suppress.%d\n",suppress_pubkeys);
free_json(privkeys);

Loading…
Cancel
Save