From 42b7b5c02a1f263929f51290b2b3c4df805d912d Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 24 Jan 2018 12:49:53 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_bitcoin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index e89772438..87085839c 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/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);