<p>I want to run full nodes for Bitcoin (bitcoind) and Bitcoin cash (<a href="https://bitcoinclassic.com/" rel="nofollow noreferrer">bitcoinclassic</a>). Here are the commands I'm using to run these nodes (I've renamed bitcoin classic tools to <code>bitcoinclassic*</code> and moved the executables to the <code>/usr/bin</code>):</p>

<pre><code>$ bitcoind -daemon -dbcache=3072 -rpcthreads=10
$ bitcoinclassicd -daemon -datadir=.bitcoinclassic/ -dbcache=3072 -rpcthreads=10
</code></pre>

<p>They are both starts OK, but when I'm trying to use the bitcoin-cli and bitcoinclassic-cli, for some reason I'm getting information only for bitcoinclassic</p>

<pre><code>$ bitcoin-cli getinfo
{
  "version": 1030300,
  "protocolversion": 80002,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 479637,
  "timeoffset": 0,
  "connections": 19,
  "proxy": "",
  "difficulty": 115459053827.9121,
  "testnet": false,
  "keypoololdest": 1502885275,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

$ bitcoinclassic-cli getinfo
{
  "version": 1030300,
  "protocolversion": 80002,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 479637,
  "timeoffset": 0,
  "connections": 19,
  "proxy": "",
  "difficulty": 115459053827.9121,
  "testnet": false,
  "keypoololdest": 1502885275,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}
</code></pre>

<p>How can I fix it? Maybe I should use more flags at the start, e.g. specifying configuration file or something else?</p>

<p>UPDATE: I forget to say, that they are not using the same port, here's the configs:</p>

<pre><code>$ cat .bitcoin/bitcoin.conf 
rpcuser=USER
rpcpassword=PASS
rpcbind=127.0.0.1
rpcport=8332
server=1
$ cat .bitcoinclassic/bitcoin.conf 
rpcuser=USER
rpcpassword=PASS
rpcbind=127.0.0.1
rpcport=8432
server=1
bind=0.0.0.0:9222
maxconnections=10
</code></pre>

CC BY-SA 3.0
2017-08-19T01:20:47.410Z
Are they using the same RPC port?
Nick ODell
CC BY-SA 3.0
2017-08-19T01:24:06.920Z
@NickODell no, check question's update
Sergey Potekhin
CC BY-SA 3.0
2017-08-19T01:26:21.883Z
Are you using -conf to tell each cli tool where to find the configuration for that daemon?
Nick ODell
CC BY-SA 3.0
2017-08-19T01:28:28.033Z
@NickODell No, I thought that they will try to find configuration files in their datadir folders (.bitcoin and .bitcoinclassic). Should I do it?
Sergey Potekhin
CC BY-SA 3.0
2017-08-19T01:29:09.433Z
Let me rephrase - are you using -datadir to tell each cli tool where to find the configuration for that daemon?
Nick ODell
CC BY-SA 3.0
2017-08-19T01:31:22.150Z
@NickODell As I wrote in my question, I'm using -datadir option with bitcoinclassicd (-datadir=.bitcoinclassic/). I'm not using this flag with bitcoind, so it's using default folder (.bitcoin).
Sergey Potekhin
CC BY-SA 3.0
2017-08-19T01:32:38.900Z
Are you passing the -datadir option to bitcoinclassic-cli?
Nick ODell
CC BY-SA 3.0
2017-08-19T01:42:29.067Z
@NickODell nope. I've tried - didn't help.
Sergey Potekhin
CC BY-SA 3.0
2018-01-30T23:27:23.713Z
Sergey, have you found what caused the trouble?
Denis Matafonov
<bitcoin-core><bitcoind><bitcoin-cli><bitcoin-classic>
How can I run bitcoind and bitcoinclassicd on the same server?
Sergey Potekhin
# How can I run bitcoind and bitcoinclassicd on the same server?

(Asked by: username_0 on 2017-08-19)

I want to run full nodes for Bitcoin (bitcoind) and Bitcoin cash (bitcoinclassic). Here are the commands I'm using to run these nodes (I've renamed bitcoin classic tools to bitcoinclassic* and moved the executables to the /usr/bin):
$ bitcoind -daemon -dbcache=3072 -rpcthreads=10
$ bitcoinclassicd -daemon -datadir=.bitcoinclassic/ -dbcache=3072 -rpcthreads=10

They are both starts OK, but when I'm trying to use the bitcoin-cli and bitcoinclassic-cli, for some reason I'm getting information only for bitcoinclassic
$ bitcoin-cli getinfo
{
  "version": 1030300,
  "protocolversion": 80002,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 479637,
  "timeoffset": 0,
  "connections": 19,
  "proxy": "",
  "difficulty": 115459053827.9121,
  "testnet": false,
  "keypoololdest": 1502885275,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

$ bitcoinclassic-cli getinfo
{
  "version": 1030300,
  "protocolversion": 80002,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 479637,
  "timeoffset": 0,
  "connections": 19,
  "proxy": "",
  "difficulty": 115459053827.9121,
  "testnet": false,
  "keypoololdest": 1502885275,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

How can I fix it? Maybe I should use more flags at the start, e.g. specifying configuration file or something else?
UPDATE: I forget to say, that they are not using the same port, here's the configs:
$ cat .bitcoin/bitcoin.conf 
rpcuser=USER
rpcpassword=PASS
rpcbind=127.0.0.1
rpcport=8332
server=1
$ cat .bitcoinclassic/bitcoin.conf 
rpcuser=USER
rpcpassword=PASS
rpcbind=127.0.0.1
rpcport=8432
server=1
bind=0.0.0.0:9222
maxconnections=10

**Tags:** bitcoin-core, bitcoind, bitcoin-cli, bitcoin-classic

> **Comments:**
> **username_1**: Are they using the same RPC port?  
> **username_0**: @NickODell no, check question's update  
> **username_1**: Are you using -conf to tell each cli tool where to find the configuration for that daemon?  
> **username_0**: @NickODell No, I thought that they will try to find configuration files in their datadir folders (.bitcoin and .bitcoinclassic). Should I do it?  
> **username_1**: Let me rephrase - are you using -datadir to tell each cli tool where to find the configuration for that daemon?  
> **username_0**: @NickODell As I wrote in my question, I'm using -datadir option with bitcoinclassicd (-datadir=.bitcoinclassic/). I'm not using this flag with bitcoind, so it's using default folder (.bitcoin).  
> **username_1**: Are you passing the -datadir option to bitcoinclassic-cli?  
> **username_0**: @NickODell nope. I've tried - didn't help.  
> **username_2**: Sergey, have you found what caused the trouble?  

---

## 0 answers

