|
@ -662,7 +662,7 @@ void LP_bobloop(void *_swap) |
|
|
expiration = (uint32_t)time(NULL) + LP_SWAPSTEP_TIMEOUT; |
|
|
expiration = (uint32_t)time(NULL) + LP_SWAPSTEP_TIMEOUT; |
|
|
if ( swap != 0 ) |
|
|
if ( swap != 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( LP_waitsend("pubkeys",5*LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_pubkeys_verify,LP_pubkeys_data) < 0 ) |
|
|
if ( LP_waitsend("pubkeys",15*LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_pubkeys_verify,LP_pubkeys_data) < 0 ) |
|
|
printf("error waitsend pubkeys\n"); |
|
|
printf("error waitsend pubkeys\n"); |
|
|
else if ( LP_waitsend("choosei",LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_choosei_verify,LP_choosei_data) < 0 ) |
|
|
else if ( LP_waitsend("choosei",LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_choosei_verify,LP_choosei_data) < 0 ) |
|
|
printf("error waitsend choosei\n"); |
|
|
printf("error waitsend choosei\n"); |
|
@ -718,7 +718,7 @@ void LP_aliceloop(void *_swap) |
|
|
if ( swap != 0 ) |
|
|
if ( swap != 0 ) |
|
|
{ |
|
|
{ |
|
|
fprintf(stderr,"start swap iamalice pair.%d\n",swap->N.pair); |
|
|
fprintf(stderr,"start swap iamalice pair.%d\n",swap->N.pair); |
|
|
if ( LP_sendwait("pubkeys",5*LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_pubkeys_verify,LP_pubkeys_data) < 0 ) |
|
|
if ( LP_sendwait("pubkeys",15*LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_pubkeys_verify,LP_pubkeys_data) < 0 ) |
|
|
printf("error LP_sendwait pubkeys\n"); |
|
|
printf("error LP_sendwait pubkeys\n"); |
|
|
else if ( LP_sendwait("choosei",LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_choosei_verify,LP_choosei_data) < 0 ) |
|
|
else if ( LP_sendwait("choosei",LP_SWAPSTEP_TIMEOUT,swap->N.pair,swap,data,maxlen,LP_choosei_verify,LP_choosei_data) < 0 ) |
|
|
printf("error LP_sendwait choosei\n"); |
|
|
printf("error LP_sendwait choosei\n"); |
|
|