jl777 7 years ago
parent
commit
42b7b5c02a
  1. 2
      iguana/exchanges/LP_bitcoin.c

2
iguana/exchanges/LP_bitcoin.c

@ -2281,7 +2281,7 @@ int32_t bitcoin_priv2wif(char *symbol,uint8_t wiftaddr,char *wifstr,bits256 priv
memcpy(data+offset,privkey.bytes,len);
data[offset + len++] = 1;
len = base58encode_checkbuf(symbol,wiftaddr,addrtype,data,len);
if ( bitcoin_base58encode(wifstr,data,len) == 0 )
if ( bitcoin_base58encode(wifstr,data,len+offset) == 0 )
{
char str[65]; printf("error making wif from %s\n",bits256_str(str,privkey));
return(-1);

Loading…
Cancel
Save