From 984630d13eaf93fae3807465cdeaaef97fd35b76 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Sun, 15 Oct 2023 17:43:20 +0200 Subject: [PATCH] seednode-docker: Add blocknotify support --- seednode/deployment_v2/docker/blocknotify.sh | 2 ++ seednode/deployment_v2/docker/docker-compose.yml | 3 ++- seednode/deployment_v2/docker/regtest/blocknotify.sh | 3 +++ seednode/deployment_v2/docker/regtest/docker-compose.yml | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 seednode/deployment_v2/docker/blocknotify.sh create mode 100755 seednode/deployment_v2/docker/regtest/blocknotify.sh diff --git a/seednode/deployment_v2/docker/blocknotify.sh b/seednode/deployment_v2/docker/blocknotify.sh new file mode 100755 index 0000000000..cf74bc191d --- /dev/null +++ b/seednode/deployment_v2/docker/blocknotify.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo $1 | nc -w 1 bisq-seednode 5120 diff --git a/seednode/deployment_v2/docker/docker-compose.yml b/seednode/deployment_v2/docker/docker-compose.yml index 06a8331829..6fb2be8c47 100644 --- a/seednode/deployment_v2/docker/docker-compose.yml +++ b/seednode/deployment_v2/docker/docker-compose.yml @@ -11,6 +11,7 @@ services: - 8333:8333 # bitcoind port volumes: - ./bitcoind_data_dir:/root/.bitcoin + - ./blocknotify.sh:/blocknotify.sh command: - -server=1 - -listen=1 @@ -24,7 +25,7 @@ services: - -rpcallowip=172.0.0.1/8 # Docker IP range - -rpcuser=bisq - -rpcpassword=bisq - - -blocknotify=/root/.bitcoin/blocknotify.sh %s + - -blocknotify=/blocknotify.sh %s - -bind=0.0.0.0:8332 - -rpcbind=0.0.0.0:8332 diff --git a/seednode/deployment_v2/docker/regtest/blocknotify.sh b/seednode/deployment_v2/docker/regtest/blocknotify.sh new file mode 100755 index 0000000000..e883425b9f --- /dev/null +++ b/seednode/deployment_v2/docker/regtest/blocknotify.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo $1 | nc -w 1 bisq-seednode-1 5120 +echo $1 | nc -w 1 bisq-seednode-2 5121 diff --git a/seednode/deployment_v2/docker/regtest/docker-compose.yml b/seednode/deployment_v2/docker/regtest/docker-compose.yml index 2405c496bf..b8254ea533 100644 --- a/seednode/deployment_v2/docker/regtest/docker-compose.yml +++ b/seednode/deployment_v2/docker/regtest/docker-compose.yml @@ -5,6 +5,7 @@ services: image: bisq/bitcoind:latest volumes: - ./bitcoind_data_dir:/root/.bitcoin + - ./blocknotify.sh:/blocknotify.sh command: - -regtest - -server=1 @@ -19,7 +20,7 @@ services: - -rpcallowip=172.0.0.1/8 # Docker IP range - -rpcuser=${BITCOIN_RPC_USER} - -rpcpassword=${BITCOIN_RPC_PASS} - - -blocknotify=/root/.bitcoin/blocknotify.sh %s + - -blocknotify=/blocknotify.sh %s - -bind=0.0.0.0:${BITCOIN_RPC_PORT} - -rpcbind=0.0.0.0:${BITCOIN_RPC_PORT}