Skip to content

Commit

Permalink
update docker image and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Oct 20, 2024
1 parent 034f825 commit 0cc8a63
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# babylon-deployment
# 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
```
2 changes: 1 addition & 1 deletion docker/docker-compose-bitcoin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
bitcoind:
image: snapchain/bitcoind:latest
image: snapchain/bitcoind:034f825
container_name: bitcoind
env_file:
- "${PWD}/.env.bitcoin"
Expand Down

0 comments on commit 0cc8a63

Please sign in to comment.