Skip to content

Commit 18615b2

Browse files
committed
scripts: fix run_regtest.sh electrs panic
By default electrs serves Prometheus metrics on 127.0.0.1:24224 for regtest. Because we run two electrs containers one always panic because the port is alrady in use. This commit configures one of the two electrs servers to serve metrics on 24225 instead to avoid the crash.
1 parent 0c82d7b commit 18615b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/run_regtest.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ BITCOIND_PORT=12340
5050
BITCOIND_RPC_PORT=10332
5151
ELECTRS_RPC_PORT1=52001
5252
ELECTRS_RPC_PORT2=52002
53+
ELECTRS_MONITORING_PORT2=24225
5354

5455
docker run -v $BITCOIN_DATADIR:/bitcoin/.bitcoin --name=bitcoind-regtest \
5556
-e DISABLEWALLET=0 \
@@ -97,6 +98,7 @@ docker run \
9798
--daemon-rpc-addr=${DOCKER_IP}:${BITCOIND_RPC_PORT} \
9899
--daemon-p2p-addr=${DOCKER_IP}:${BITCOIND_PORT} \
99100
--electrum-rpc-addr=127.0.0.1:${ELECTRS_RPC_PORT2} \
101+
--monitoring-addr=127.0.0.1:${ELECTRS_MONITORING_PORT2} \
100102
--daemon-dir=/bitcoin/.bitcoin \
101103
--db-dir=/data &
102104

0 commit comments

Comments
 (0)