|
|
@ -867,7 +867,18 @@ void LP_aliceloop(void *_swap) |
|
|
|
printf("error sending alicefee\n"); |
|
|
|
else if ( LP_waitfor(swap->N.pair,swap,1800,LP_verify_bobdeposit) < 0 ) |
|
|
|
printf("error waiting for bobdeposit\n"); |
|
|
|
else if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x1000,data,maxlen,&swap->alicepayment,0x800,0) == 0 ) |
|
|
|
else |
|
|
|
{ |
|
|
|
if ( strcmp(swap->I.bobstr,"BTC") == 0 ) |
|
|
|
m = 0; |
|
|
|
else m = swap->I.bobconfirms; |
|
|
|
while ( (n= LP_numconfirms(swap->I.bobstr,swap->bobpayment.I.destaddr,swap->bobpayment.I.signedtxid,0,1)) < m ) |
|
|
|
{ |
|
|
|
LP_swap_critical = (uint32_t)time(NULL); |
|
|
|
char str[65];printf("%d wait for bobpayment %s numconfs.%d %s %s\n",n,swap->bobpayment.I.destaddr,m,swap->I.bobstr,bits256_str(str,swap->bobpayment.I.signedtxid)); |
|
|
|
sleep(10); |
|
|
|
} |
|
|
|
if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x1000,data,maxlen,&swap->alicepayment,0x800,0) == 0 ) |
|
|
|
printf("error sending alicepayment\n"); |
|
|
|
else |
|
|
|
{ |
|
|
@ -906,6 +917,7 @@ void LP_aliceloop(void *_swap) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
free(data); |
|
|
|
if ( swap->N.pair >= 0 ) |
|
|
|
{ |
|
|
|