Browse Source

Only print one sig error from add

patch-3
jl777 7 years ago
parent
commit
3bbbb7846d
  1. 7
      iguana/exchanges/LP_signatures.c

7
iguana/exchanges/LP_signatures.c

@ -484,9 +484,14 @@ char *LP_postprice_recv(cJSON *argjson)
{ {
if ( jstr(argjson,"pubsecp") != 0 ) if ( jstr(argjson,"pubsecp") != 0 )
{ {
static char lasterror[64];
decode_hex(pubkey33,33,jstr(argjson,"pubsecp")); decode_hex(pubkey33,33,jstr(argjson,"pubsecp"));
bitcoin_address("KMD",coinaddr,0,60,pubkey33,33); 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\"}")); return(clonestr("{\"error\":\"sig failure\"}"));
} }

Loading…
Cancel
Save