Browse Source

Revert double send of request

pass-iguana-arg
jl777 7 years ago
parent
commit
6d37c041db
  1. 2
      iguana/exchanges/LP_signatures.c
  2. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_signatures.c

@ -722,7 +722,7 @@ void LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct LP_
LP_queuecommand(0,msg,IPC_ENDPOINT,-1,0);
memset(&zero,0,sizeof(zero));
LP_reserved_msg(1,qp->srccoin,qp->destcoin,zero,clonestr(msg));
//if ( bits256_nonz(qp->srchash) != 0 )
if ( bits256_nonz(qp->srchash) != 0 )
{
sleep(1);
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->srchash,clonestr(msg));

2
iguana/exchanges/LP_socket.c

@ -201,7 +201,7 @@ int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port)
#endif
if ( bindflag == 0 )
{
if ( 0 )
if ( 1 ) // connect using async to allow timeout, then switch to sync
{
uint32_t starttime = (uint32_t)time(NULL);
//printf("call connect sock.%d\n",sock);

Loading…
Cancel
Save