1

Does anyone know how one might run two bitcoin full nodes on the same machine with both these nodes sharing the same blocks and chainstate files, is a symlink to these files enough or must something else be done?

1

This is not possible beyond providing both nodes identical own copy of the chain before initial sync. Both nodes will attempt to acquire their Bitcoin data resources via the P2P network independently, and index these accordingly, so they cannot share the same store.

What is possible though is to configure the nodes to be permanently maintain a peer connection to each other. TX and Blocks organized by one peer will be seen and then organized by the other.

  • Would it mean you can then have one node exposed to the outside work and another only watching a single local peer? That would completely remove access to the outside world for one of the nodes then wouldn't it. – tsujp Dec 1 '18 at 16:16
  • Both is possible. Saves you some external bandwidth, but you will have fewer connections in total with outside peers (unless you double peers in config). As long as the two peers are permanently connected they will follow the same strong chain, assuming they are running same binary. – James C. Dec 1 '18 at 16:19
  • Another thing worth exploring is sharing specifically the blocks folder but allowing each node to use its own chainstate and database so that the locked peer list isn't required. – tsujp Dec 1 '18 at 16:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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