Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seednode-docker: Add blocknotify support #6920

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions seednode/deployment_v2/docker/blocknotify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo $1 | nc -w 1 bisq-seednode 5120
3 changes: 2 additions & 1 deletion seednode/deployment_v2/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- 8333:8333 # bitcoind port
volumes:
- ./bitcoind_data_dir:/root/.bitcoin
- ./blocknotify.sh:/blocknotify.sh
command:
- -server=1
- -listen=1
Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions seednode/deployment_v2/docker/regtest/blocknotify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo $1 | nc -w 1 bisq-seednode-1 5120
echo $1 | nc -w 1 bisq-seednode-2 5121
3 changes: 2 additions & 1 deletion seednode/deployment_v2/docker/regtest/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
image: bisq/bitcoind:latest
volumes:
- ./bitcoind_data_dir:/root/.bitcoin
- ./blocknotify.sh:/blocknotify.sh
command:
- -regtest
- -server=1
Expand All @@ -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}

Expand Down