0

I've installed Bitcoin Core on a server and it works well for BTC. I would like to know can I use the same server and platform to support BCH too?
I know that the addresses generated in Bitcoin Core are usable for BCH too. But how if I am able to handle BCH transactions in this machine, how can I differ them from BTC ones?

Thank you in advance for your replies.

1

If your BTC addresses aren't SegWit addresses, you can use dumpprivkey to extract your private keys and use them in a BCH wallet. You can import them to Electron Cash, which is a wallet software, or Bitcoin Unlimited/Bitcoin ABC, which are equivalents of Bitcoin Core. I'd advise against using BU/ABC and Core on the same machine, because both of them use the incoming port 8333. Besides, you might need to set datadir option otherwise they'd corrupt Core's blockchain and wallet databases.

6
  • do both Bitcoin and Bitcoin Cash use the same blockchain too? If so, and if I install both on a same server, how can I differentiate the incoming BTCs from BCHs? – Mohammad Saberi Feb 17 '20 at 11:43
  • They have separate blockchains since BCH was born. You need to use different software to receive BCH and BTC, which would tell you which currency you receive. – MCCCS Feb 17 '20 at 11:58
  • Thank you so much. Just something is strange for me. Binance and some other exchanges which I have checked, provide the same address for both BTC and BCH receives. How is it possible? I've got a bit confused. – Mohammad Saberi Feb 17 '20 at 19:18
  • There are lots of coins that use the same crypto to sign transactions (ECDSA on curve secp256k1). BTC and BCH included. So you can use the same private key and public keys on both chains (a public key is a private key times the generator point; an address is a hashed public key). Usually different currencies use different address formats. This is to prevent the case that your BCH wallet generates an address that is compatible with both currencies; someone could send BTC to it and those coins could be lost as a result. BCH also has a second address format, but it didn't exist when BCH was – MCCCS Feb 17 '20 at 19:38
  • 1
    You gave me lots of information. Thank you so much @MCCCS – Mohammad Saberi Feb 17 '20 at 20:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.