From dd03a8146281646d314584dc0ee7adc7b43fb8bb Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 20 Dec 2017 21:15:47 +0700 Subject: [PATCH] Test --- iguana/exchanges/LP_privkey.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index b52d7107c..e1dcf0b04 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -205,13 +205,15 @@ char *LP_secretaddresses(void *ctx,char *prefix,char *passphrase,int32_t n,uint8 int32_t LP_wifstr_valid(char *wifstr) { bits256 privkey,cmpkey; uint8_t wiftype; char cmpstr[128],cmpstr2[128]; int32_t iter; - for (iter=0; iter<2; iter++) + memset(privkey.bytes,0,sizeof(privkey)); + memset(cmpkey.bytes,0,sizeof(cmpkey)); + for (iter=0; iter<1; iter++) { bitcoin_wif2priv(0,&wiftype,&privkey,wifstr); bitcoin_priv2wif(0,cmpstr,privkey,wiftype); if ( strcmp(cmpstr,wifstr) == 0 ) { - //printf("%s is valid wif\n",wifstr); + printf("%s is valid wif\n",wifstr); return(1); } else