From 20a0fce77c2b166d09276a134f6ed732df8700a2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 20 Jan 2018 08:57:21 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_bitcoin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 5c0e7e5ef..f73203d1c 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2226,6 +2226,8 @@ int32_t bitcoin_wif2priv(uint8_t wiftaddr,uint8_t *addrtypep,bits256 *privkeyp,c int32_t bitcoin_wif2addr(void *ctx,char *symbol,uint8_t wiftaddr,uint8_t taddr,uint8_t pubtype,char *coinaddr,char *wifstr) { bits256 privkey; uint8_t addrtype,pubkey33[33]; + if ( strcmp(symbol,"BCH") == 0 ) + symbol = "BTC"; coinaddr[0] = 0; if ( bitcoin_wif2priv(wiftaddr,&addrtype,&privkey,wifstr) == sizeof(privkey) ) {