Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
use cookieauth for bitcoind
Browse files Browse the repository at this point in the history
  • Loading branch information
AR committed Mar 25, 2024
1 parent 4b32702 commit 643a309
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ data
data/boltz/*
!data/boltz/boltz.conf
!data/boltz/seed.dat
.idea/
3 changes: 1 addition & 2 deletions data/boltz/boltz.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ maxZeroConfAmount = 0
zmqpubrawtx = "tcp://bitcoind:29000"
zmqpubrawblock = "tcp://bitcoind:29001"
port = 18_443
user = "regtest"
password = "regtest"
cookie = "/root/.bitcoin/regtest/.cookie"

[currencies.lnd]
host = "lnd-2"
Expand Down
18 changes: 10 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- ./data/lnd-2:/data/lnd/
- ./data/boltz/:/root/.boltz/
- ./data/elements/:/root/.elements/
volumes_from:
- bitcoind:ro

anvil:
hostname: anvil
Expand All @@ -36,8 +38,6 @@ services:
- -txindex
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0
- -rpcuser=regtest
- -rpcpassword=regtest
expose:
- 29000
- 29001
Expand Down Expand Up @@ -73,8 +73,6 @@ services:
- --bind-addr=0.0.0.0:9735
- --bitcoin-rpcconnect=bitcoind
- --bitcoin-rpcport=18443
- --bitcoin-rpcuser=regtest
- --bitcoin-rpcpassword=regtest
- --grpc-port=9736
- --dev-bitcoind-poll=3
expose:
Expand All @@ -83,6 +81,8 @@ services:
- 9736:9736
volumes:
- ./data/clightning-1:/root/.lightning/
volumes_from:
- bitcoind:ro

lnd-1:
hostname: lnd-1
Expand All @@ -100,8 +100,7 @@ services:
- --bitcoind.rpchost=bitcoind
- --bitcoind.zmqpubrawtx=bitcoind:29000
- --bitcoind.zmqpubrawblock=bitcoind:29001
- --bitcoind.rpcuser=regtest
- --bitcoind.rpcpass=regtest
- --bitcoind.rpccookie=/root/.bitcoin/regtest/.cookie
- --noseedbackup
- --protocol.wumbo-channels
expose:
Expand All @@ -113,6 +112,8 @@ services:
- 10009:10009
volumes:
- ./data/lnd-1:/root/.lnd/
volumes_from:
- bitcoind:ro

lnd-2:
hostname: lnd-2
Expand All @@ -130,8 +131,7 @@ services:
- --bitcoind.rpchost=bitcoind
- --bitcoind.zmqpubrawtx=bitcoind:29000
- --bitcoind.zmqpubrawblock=bitcoind:29001
- --bitcoind.rpcuser=regtest
- --bitcoind.rpcpass=regtest
- --bitcoind.rpccookie=/root/.bitcoin/regtest/.cookie
- --noseedbackup
- --protocol.wumbo-channels
expose:
Expand All @@ -140,6 +140,8 @@ services:
- 10009
volumes:
- ./data/lnd-2:/root/.lnd/
volumes_from:
- bitcoind:ro

electrs:
hostname: electrs
Expand Down
2 changes: 1 addition & 1 deletion docker-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export COMPOSE_PROJECT_NAME=regtest

bitcoin-cli-sim() {
docker exec regtest-bitcoind-1 bitcoin-cli -rpcuser=regtest -rpcpassword=regtest -regtest "$@"
docker exec regtest-bitcoind-1 bitcoin-cli --rpccookiefile=/root/.bitcoin/regtest/.cookie -regtest "$@"
}

elements-cli-sim() {
Expand Down

0 comments on commit 643a309

Please sign in to comment.