<p><code>bitcoin-cli</code> simply acts as a convenience interface to the JSON-RPC api of <code>bitcoind</code> - as long as you only have one instance of <code>bitcoind</code> using a given datadir, you can safely use multiple <code>bitcoin-cli</code> calls at the same time.</p>

CC BY-SA 4.0
2020-05-14T10:05:12.663Z
Right, though beware of the maximum number of concurrent calls (4 by default, adjustable with`-rpcthreads`). `bitcoind` will *ignore* any calls made above this limit.
Antoine Poinsot
CC BY-SA 4.0
2020-05-14T19:51:19.147Z
Does this mean that by default only 4 bitcoin-cli can ever use the same blocksdir or only 4 at a time?
Harmalarm
CC BY-SA 4.0
2020-05-14T03:17:13.160Z
2020-05-14T03:17:13.160Z
Raghav Sood
<p>I am trying to set up 2 clients with both using the same block directory is this possible?</p>

<development>
Can 2 bitcoin-cli's use the same blocksdir
Harmalarm
# Can 2 bitcoin-cli's use the same blocksdir

(Asked by: username_0 on 2020-05-14)

I am trying to set up 2 clients with both using the same block directory is this possible?

**Tags:** development


---

## 1 answers

### Answer by username_1 on 2020-05-14. Score: 1

`bitcoin-cli` simply acts as a convenience interface to the JSON-RPC api of `bitcoind` - as long as you only have one instance of `bitcoind` using a given datadir, you can safely use multiple `bitcoin-cli` calls at the same time.

> **Comments:**
> **username_2**: Right, though beware of the maximum number of concurrent calls (4 by default, adjustable with`-rpcthreads`). `bitcoind` will *ignore* any calls made above this limit.  
> **username_0**: Does this mean that by default only 4 bitcoin-cli can ever use the same blocksdir or only 4 at a time?  

---

