From cf8cbfc7b006d3576019b47a41ace3854dc58898 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 22 Oct 2017 16:57:33 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_signatures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index bb8105d50..b67bcd3e1 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -365,6 +365,7 @@ int32_t LP_pubkey_sigadd(cJSON *item,bits256 priv,bits256 pub,uint8_t *rmd160,ui jaddstr(item,"sig",sigstr); return(siglen); } + if ( 0 ) { for (i=0; i<33; i++) printf("%02x",pubsecp[i]); @@ -385,7 +386,7 @@ int32_t LP_pubkey_sigcheck(struct LP_pubkeyinfo *pubp,cJSON *item) { decode_hex(rmd160,sizeof(rmd160),hexstr); memset(zeroes,0,sizeof(zeroes)); - if ( memcmp(zeroes,rmd160,sizeof(rmd160)) != 0 ) + if ( memcmp(zeroes,rmd160,sizeof(rmd160)) != 0 && memcmp(rmd160,pubp->rmd160,20) != 0 ) { if ( (pubsecpstr= jstr(item,"pubsecp")) != 0 && is_hexstr(pubsecpstr,0) == 66 ) {