From 0cc8a638030b976b6dbf7720f0288164d6050f8f Mon Sep 17 00:00:00 2001 From: lesterli Date: Sun, 20 Oct 2024 22:01:28 +0800 Subject: [PATCH] update docker image and readme --- README.md | 37 ++++++++++++++++++++++++++++++- docker/docker-compose-bitcoin.yml | 2 +- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 923e1f9..7c4fc56 100644 --- a/README.md +++ b/README.md @@ -1 +1,36 @@ -# babylon-deployment \ No newline at end of file +# babylon-deployment + +## Start Bitcoin node + +1. Copy the `.env.bitcoin.example` file to `.env.bitcoin` and set the variables + + ```bash + cp .env.bitcoin.example .env.bitcoin + ``` + +* The `NETWORK` variable only can be either `regtest` or `signet`. +* The `BTCSTAKER_PRIVKEY` variable must be a valid Bitcoin private key in WIF format. + +2. Start the Bitcoin node + + ```bash + make start-bitcoin + ``` + +3. Verify the Bitcoin node is synced and has a balance + + ```bash + make verify-bitcoin-sync-balance + ``` + +4. Stop the Bitcoin node + + ```bash + make stop-bitcoin + ``` + +5. Check the Bitcoin node logs + + ```bash + docker compose -f docker/docker-compose-bitcoin.yml logs -f bitcoind + ``` diff --git a/docker/docker-compose-bitcoin.yml b/docker/docker-compose-bitcoin.yml index 427e93c..89f7e77 100644 --- a/docker/docker-compose-bitcoin.yml +++ b/docker/docker-compose-bitcoin.yml @@ -1,6 +1,6 @@ services: bitcoind: - image: snapchain/bitcoind:latest + image: snapchain/bitcoind:034f825 container_name: bitcoind env_file: - "${PWD}/.env.bitcoin"