|
|
@ -671,9 +671,15 @@ void LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct LP_ |
|
|
|
{ |
|
|
|
memset(&zero,0,sizeof(zero)); |
|
|
|
LP_reserved_msg(1,qp->srccoin,qp->destcoin,zero,clonestr(msg)); |
|
|
|
sleep(1); |
|
|
|
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->desthash,clonestr(msg)); |
|
|
|
LP_reserved_msg(0,qp->srccoin,qp->destcoin,zero,clonestr(msg)); |
|
|
|
if ( strcmp(method,"request") == 0 ) |
|
|
|
{ |
|
|
|
sleep(1); |
|
|
|
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->desthash,clonestr(msg)); |
|
|
|
sleep(1); |
|
|
|
LP_reserved_msg(0,qp->srccoin,qp->destcoin,zero,clonestr(msg)); |
|
|
|
sleep(1); |
|
|
|
LP_reserved_msg(0,qp->srccoin,qp->destcoin,qp->desthash,clonestr(msg)); |
|
|
|
} |
|
|
|
free(msg); |
|
|
|
/*portable_mutex_lock(&LP_reservedmutex);
|
|
|
|
if ( num_Reserved_msgs[1] < sizeof(Reserved_msgs[1])/sizeof(*Reserved_msgs[1])-2 ) |
|
|
|