From 3933a4dc1d65e2822dc2dc5d40962b7bebc5854d Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 25 Jun 2018 02:55:54 -1100 Subject: [PATCH] Suppress mpnet on request --- iguana/exchanges/LP_mpnet.c | 7 ++++++- iguana/exchanges/LP_signatures.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_mpnet.c b/iguana/exchanges/LP_mpnet.c index 37bf9ba39..a0d53b290 100644 --- a/iguana/exchanges/LP_mpnet.c +++ b/iguana/exchanges/LP_mpnet.c @@ -96,13 +96,18 @@ void LP_mpnet_send(int32_t localcopy,char *msg,int32_t sendflag,char *otheraddr) free_json(argjson); if ( retstr != 0 ) { - printf("mpnet.%s\n",retstr); + //printf("mpnet.%s\n",retstr); free(retstr); } } } } +// 2151978 +// 404bc4ac452db07ed16376b3d7e77dbfc22b4a68f7243797125bd0d3bdddf8d1 +// 893b46634456034a6d5d73b67026aa157b5e2addbfc6344dfbea6bae85f7dde0 +// 717c7ef9de8504bd331f3ef52ed0a16ea0e070434e12cb4d63f5f081e999c43d dup + cJSON *LP_mpnet_get() { return(0); diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index 5746df346..58713b7ff 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -741,7 +741,7 @@ void LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct LP_ LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->srchash,clonestr(msg)); } } - if ( qp->mpnet != 0 && qp->gtc != 0 && qp->fill != 0 ) + if ( strcmp(method,"connect") == 0 && qp->mpnet != 0 && qp->gtc != 0 && qp->fill != 0 ) LP_mpnet_send(0,msg,1,0); free(msg); }