Installing bitcoin and bitcoincash on same server

0

I have installed bitcoin core by using its source code in my amazon server by using the instructions given in the below youtube link

https://www.youtube.com/watch?v=tG_24G7bj_w

Some portion of the commands that i used to install the bitcoin from the source code were given below,

sudo mv ./include/bitcoinconsensus.h /usr/local/include/bitcoinconsensus.h mkdir -p /usr/local/lib sudo mv ./lib/libbitcoinconsensus.so /usr/local/lib/libbitcoinconsensus.so sudo mv ./lib/libbitcoinconsensus.so.0 /usr/local/lib/libbitcoinconsensus.so.0 sudo mv ./lib/libbitcoinconsensus.so.0.0.0 /usr/local/lib/libbitcoinconsensus.so.0.0.0 chmod 644 /usr/local/lib/libbitcoinconsensus.so /usr/local/lib/libbitcoinconsensus.so.0 /usr/local/lib/libbitcoinconsensus.so.0.0.0

Its running fine in my server. Now I need to install bitcoincash also in the same server using the source file. I got the source file of bitcoincash from the below link

https://www.bitcoinunlimited.info/download

But i have a doubt that is there any conflict will occure when we install two coins in the same server,

also from the given commands we can see that we have to move some common folders(eg libbitcoinconsensus.so , libbitcoinconsensus.so.0 ) to the /usr/local/lib/ fiolder and /usr/local/include/ folder for installing both coin.

Then how can i install both coins from the source? Can alyone please give me to solve this problem?

Albert

Posted 2018-02-07T17:54:19.693

Reputation: 1

Answers

1

install Bitcoin ABC on Ubuntu 14.04.5 LTS, alongside Bitcoin Core, using these instructions:

Note: You have to create a new username because bitcoin and bitcoin cash use the same directory, so it won't work.

  1. Download the appropriate binary from here: https://download.bitcoinabc.org/

    For me, the command would be:

    wget https://download.bitcoinabc.org/0.16.2/linux/bitcoin-abc-0.16.2-x86_64-linux-gnu.tar.gz

  2. Extract the archive:

    tar xzvf bitcoin-abc-0.16.2-x86_64-linux-gnu.tar.gz

  3. Rename the binary files:

    cd bitcoin-abc-0.16.2/bin/; rename 's/bitcoin/bitcoinCash/' *

  4. Install the files into /usr/local/bin:

    sudo install -m 0755 -o root -g root -t /usr/local/bin *

Finally!

bitcoinCashd -version outputs:

Bitcoin ABC Daemon version v0.16.2.0-6af5e93

[...]

bitcoind -version outputs:

Bitcoin Core Daemon version v0.15.1

[..]

ls /usr/local/bin outputs:

bitcoinCash-cli  bitcoinCash-seeder  bitcoind    test_bitcoin
bitcoinCashd     bitcoinCash-tx      bitcoin-qt  test_bitcoinCash
bitcoinCash-qt   bitcoin-cli         bitcoin-tx

Note: You have to edit the default port on bitcoin.conf file, Since Bitcoin-core and Bitcoin-cash will use the same RPC port. rpcport=4523

Adam

Posted 2018-02-07T17:54:19.693

Reputation: 3 215

Thank you Adam for your reply.But I have a doubt does these two coins bitcoin abc and bitcoincash are same?Albert 2018-02-08T06:20:52.493

Finally I installed and run both wallets bitcoin and bitcoincash on same server.I just rename some executable files and connected both wallets on different ports.Thank you...Albert 2018-02-10T07:39:42.393

This will cause problems. Both the Bitcoin Core and ABC will try to use the port 8333MCCCS 2018-04-07T13:38:35.503

Yeah, you are right, I forgot to mention that.Adam 2018-04-07T13:42:02.623

The bitcoinCashd and bitcoind -version works, but when running it, the commands such as bitcoin-cli getblockchaininfo and bitcoinCash-getinfo both return the first daemon run. Both cant be run at onceAnekdotin 2018-06-17T20:51:46.750

I created user1 and user2 installed bitcoin and bitcoincash the same way. I also try starting them pointing at the config fileAnekdotin 2018-06-17T20:53:11.757

are you starting them from each app user? I mean you have to start to call BitcoinCash-cli getnetworkinfo from user2Adam 2018-06-18T02:48:25.343