From 8943d707a450a6e8323adb8c4a3cb98ed9fc5b40 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 27 Nov 2017 00:26:24 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_signatures.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index f5293ff75..3393842c7 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -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 )