jl777 7 years ago
parent
commit
9d4a47b5f0
  1. 5
      iguana/exchanges/LP_bitcoin.c

5
iguana/exchanges/LP_bitcoin.c

@ -2220,11 +2220,12 @@ int32_t bitcoin_wif2priv(char *symbol,uint8_t wiftaddr,uint8_t *addrtypep,bits25
{
memcpy(privkeyp,buf+offset,32);
if ( len > 32+offset )
printf("wif: extra byte %d len.%d vs %d addrtype.%d\n",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("wif %s -> buf too short len.%d\n",wifstr,len);
printf("wif %s -> buf too short len.%d\n",wifstr,len);
return(-1);
}
ptr = buf;

Loading…
Cancel
Save