This article assumes you have already setup your node using bitcoind and its default configuration. You can run both node and cash node on the same server as long as you configure them correctly.. This guide is installing Bitcoincash ABC alongside Bitcoind.
- First download the latest bitcoincash client via . At the time of writing, we will be using version 0.19.0.
-abc-0.19.0-x86_64-linux-gnu.tar.gz - Extract the binaries using your favorite extractor and rename the folder to “bcash”
- Move bcash directory to your home directory ~/bcash
mv bcash ~/
4. Lets create a directory as the data directory to bcash information. ~/.bch
mkdir .bch
5. This step is crucial. Create a bch.conf file in ~/.bch and enter the following information.
cd ~/.bch
touch bch.conf
nano bch.conf
Enter the following information:
#this is the port bchd will listen for syncing the , use a free port
port=19333
datadir=~/.bch/bch.conf
#command testnet out for production chain
testnet=1
server=1
#rpc configurations
rpcuser=yourrpcuser
rpcpassword=yourrpcpassword
rpcport=19332
6. Now start syncing the node with this command
~/bcash/bin/bitcoind -daemon -conf=~/.bch/bch.conf
7. Congratulations, you are now running both and cash abc on the same machine.
8. To interact with cash abc, use the following command. Note that the command will fail if -conf=~/.bch/bch.conf is omitted.
~/bach/bin/-cli -conf=~/.bch/bch.conf getblockchaininfo
9. To have bitcoincash start automatically, add a cronjob
crontab -e
~/bcash/bin/bitcoind -daemon -conf=-conf=~/.bch/bch.conf >> ~/logs/bitcoincash_daemon.log
Congratulations on installing both and bitcoincash on the same machine.
Published at Fri, 22 Feb 2019 02:04:40 +0000