From 3bbbb7846d0bfb46b291314c207cb8ae7abf8fd6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Apr 2018 14:56:01 +0300 Subject: [PATCH] Only print one sig error from add --- iguana/exchanges/LP_signatures.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index de3702076..2c45e53ce 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -484,9 +484,14 @@ char *LP_postprice_recv(cJSON *argjson) { if ( jstr(argjson,"pubsecp") != 0 ) { + static char lasterror[64]; decode_hex(pubkey33,33,jstr(argjson,"pubsecp")); bitcoin_address("KMD",coinaddr,0,60,pubkey33,33); - printf("sig failure.(%s) %s\n",jprint(argjson,0),coinaddr); + if ( strcmp(coinaddr,lasterror) != 0 ) + { + printf("sig failure.(%s) %s\n",jprint(argjson,0),coinaddr); + strcpy(lasterror,coinaddr); + } } return(clonestr("{\"error\":\"sig failure\"}")); }