From 05c1a1f27421aa3424890cdaf0309cb2826edb40 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 15 Jan 2021 15:11:09 +0100 Subject: [PATCH] replace hsv2bitcoind by hsv3bitcoind --- docker/my-dojo/bitcoin/restart.sh | 2 +- docker/my-dojo/dojo.sh | 6 +++--- docker/my-dojo/tor/restart.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/my-dojo/bitcoin/restart.sh b/docker/my-dojo/bitcoin/restart.sh index f4efa2d..b89cdd8 100644 --- a/docker/my-dojo/bitcoin/restart.sh +++ b/docker/my-dojo/bitcoin/restart.sh @@ -32,7 +32,7 @@ bitcoind_options=( if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then bitcoind_options+=(-listen=1) bitcoind_options+=(-bind=172.28.1.5) - bitcoind_options+=(-externalip=$(cat /var/lib/tor/hsv2bitcoind/hostname)) + bitcoind_options+=(-externalip=$(cat /var/lib/tor/hsv3bitcoind/hostname)) fi if [ "$BITCOIND_RPC_EXTERNAL" == "on" ]; then diff --git a/docker/my-dojo/dojo.sh b/docker/my-dojo/dojo.sh index 96efbf7..4d71567 100755 --- a/docker/my-dojo/dojo.sh +++ b/docker/my-dojo/dojo.sh @@ -85,7 +85,7 @@ stop() { # Renewal of bitcoind onion address if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then if [ "$BITCOIND_EPHEMERAL_HS" = "on" ]; then - $( docker exec -it tor rm -rf /var/lib/tor/hsv2bitcoind ) &> /dev/null + $( docker exec -it tor rm -rf /var/lib/tor/hsv3bitcoind ) &> /dev/null fi fi # Stop the bitcoin daemon @@ -374,8 +374,8 @@ onion() { if [ "$BITCOIND_INSTALL" == "on" ]; then if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then - V2_ADDR_BTCD=$( docker exec -it tor cat /var/lib/tor/hsv2bitcoind/hostname ) - echo "Your local bitcoind (do not share) = $V2_ADDR_BTCD" + V3_ADDR_BTCD=$( docker exec -it tor cat /var/lib/tor/hsv3bitcoind/hostname ) + echo "Your local bitcoind (do not share) = $V3_ADDR_BTCD" echo " " fi fi diff --git a/docker/my-dojo/tor/restart.sh b/docker/my-dojo/tor/restart.sh index e44a98b..18f72a2 100644 --- a/docker/my-dojo/tor/restart.sh +++ b/docker/my-dojo/tor/restart.sh @@ -23,8 +23,8 @@ tor_options=( if [ "$BITCOIND_INSTALL" == "on" ]; then if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then - tor_options+=(--HiddenServiceDir /var/lib/tor/hsv2bitcoind) - tor_options+=(--HiddenServiceVersion 2) + tor_options+=(--HiddenServiceDir /var/lib/tor/hsv3bitcoind) + tor_options+=(--HiddenServiceVersion 3) tor_options+=(--HiddenServicePort "8333 172.28.1.5:8333") tor_options+=(--HiddenServiceDirGroupReadable 1) fi