jl777 7 years ago
parent
commit
b17d0bac7d
  1. 4
      iguana/exchanges/LP_bitcoin.c
  2. 2
      iguana/exchanges/LP_privkey.c

4
iguana/exchanges/LP_bitcoin.c

@ -2219,9 +2219,9 @@ int32_t bitcoin_wif2priv(char *symbol,uint8_t wiftaddr,uint8_t *addrtypep,bits25
if ( len >= 32+offset ) if ( len >= 32+offset )
{ {
memcpy(privkeyp,buf+offset,32); memcpy(privkeyp,buf+offset,32);
if ( len > 32+offset ) /*if ( len > 32+offset )
printf("wif %s: extra byte %d len.%d vs %d addrtype.%d\n",wifstr,buf[32+offset],len,32+offset,(wiftaddr == 0) ? buf[0] : buf[1]); printf("wif %s: extra byte %d len.%d vs %d addrtype.%d\n",wifstr,buf[32+offset],len,32+offset,(wiftaddr == 0) ? buf[0] : buf[1]);
else printf("%s is for uncompressed\n",wifstr); else printf("%s is for uncompressed\n",wifstr);*/
} }
else else
{ {

2
iguana/exchanges/LP_privkey.c

@ -236,7 +236,7 @@ int32_t LP_wifstr_valid(char *symbol,char *wifstr)
bitcoin_priv2wif(symbol,0,cmpstr,privkey,wiftype); bitcoin_priv2wif(symbol,0,cmpstr,privkey,wiftype);
if ( strcmp(cmpstr,wifstr) == 0 ) if ( strcmp(cmpstr,wifstr) == 0 )
{ {
printf("%s is valid wif\n",wifstr); //printf("%s is valid wif\n",wifstr);
return(1); return(1);
} }
else if ( bits256_nonz(privkey) != 0 ) else if ( bits256_nonz(privkey) != 0 )

Loading…
Cancel
Save