From 81229568e91e8661aed95aac8b766f5560883622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Criado-P=C3=A9rez?= Date: Sat, 15 Jan 2022 01:56:41 +0100 Subject: [PATCH] added documenation to optionally run a stacks node with your own bitcoin node --- .../running-mainnet-node/index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/pages/understand-stacks/running-mainnet-node/index.md b/src/pages/understand-stacks/running-mainnet-node/index.md index 8d2d34c4..c56ad0d7 100644 --- a/src/pages/understand-stacks/running-mainnet-node/index.md +++ b/src/pages/understand-stacks/running-mainnet-node/index.md @@ -168,6 +168,25 @@ Use the following commands to stop the local mainnet node: docker stop stacks-blockchain ``` +## Optional. Run stacks node with own bitcoin node + +It's encouraged to use your own bitcoin node when possible. + +To do this simply update the `stacks-node/config/mainnet/Config.toml` file with the details of your bitcoin node. For example: + +``` +[burnchain] +chain = "bitcoin" +mode = "mainnet" +peer_host = "localhost" +username = "rpc username" +password = "rpc password" +rpc_port = 8332 +peer_port = 8333 +``` + +The rpc configuration of your bitcoin node is out of the scope of this document, but you can find more information [here](https://developer.bitcoin.org/examples/intro.html). + ## Additional reading - [Running an API instance with Docker][]