Update Bitcoin Knots to 27.1.2-swappable.4 (#1987)

Co-authored-by: nmfretz <nmfretz@gmail.com>
This commit is contained in:
Ross 2025-01-07 00:42:57 +00:00 committed by GitHub
parent 0dc4e4d2ec
commit 98ff0e2200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 3 deletions

View File

@ -45,6 +45,7 @@ services:
bitcoind: bitcoind:
image: ghcr.io/retropex/bitcoin:v27.1@sha256:58553f26a73be8aed2c318e49fbbd3dc16e4e6158e4d75a59fcb42a2ce104e97 image: ghcr.io/retropex/bitcoin:v27.1@sha256:58553f26a73be8aed2c318e49fbbd3dc16e4e6158e4d75a59fcb42a2ce104e97
user: "1000:1000"
command: "${APP_BITCOIN_KNOTS_COMMAND}" command: "${APP_BITCOIN_KNOTS_COMMAND}"
restart: unless-stopped restart: unless-stopped
stop_grace_period: 15m30s stop_grace_period: 15m30s

View File

@ -155,7 +155,6 @@ for var in \
RPC_AUTH \ RPC_AUTH \
INTERNAL_RPC_PORT \ INTERNAL_RPC_PORT \
INTERNAL_P2P_PORT \ INTERNAL_P2P_PORT \
INTERNAL_tor_PORT \
COMMAND \ COMMAND \
RPC_HIDDEN_SERVICE \ RPC_HIDDEN_SERVICE \
P2P_HIDDEN_SERVICE \ P2P_HIDDEN_SERVICE \

View File

@ -1,5 +1,24 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Recursively chown the bitcoind data directory if this is an install impacted by the bitcoind container running as root.
APP_DIR="$(dirname "${BASH_SOURCE[0]}")/.."
BITCOIND_DATA_DIR="${APP_DIR}/data/bitcoin"
IS_BITCOIND_PERMISSIONS_SET="${APP_DIR}/data/IS_BITCOIND_PERMISSIONS_SET"
# If no blocks directory exists, we write out the file to indicate that this is a fresh install with correct permissions.
if [[ ! -d "${BITCOIND_DATA_DIR}/blocks" ]] && [[ ! -d "${BITCOIND_DATA_DIR}/testnet3/blocks" ]] && [[ ! -d "${BITCOIND_DATA_DIR}/signet/blocks" ]] && [[ ! -d "${BITCOIND_DATA_DIR}/regtest/blocks" ]]
then
touch "${IS_BITCOIND_PERMISSIONS_SET}"
fi
# If the file exists, we know that the permissions have already been set.
if [[ ! -f "${IS_BITCOIND_PERMISSIONS_SET}" ]]
then
chown -R 1000:1000 "${BITCOIND_DATA_DIR}"
touch "${IS_BITCOIND_PERMISSIONS_SET}"
fi
# Delay booting Bitcoin until the RPC and P2P Tor Hidden Services are ready # Delay booting Bitcoin until the RPC and P2P Tor Hidden Services are ready
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-rpc/hostname" HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-rpc/hostname"

View File

@ -4,7 +4,7 @@ implements:
- bitcoin - bitcoin
category: bitcoin category: bitcoin
name: Bitcoin Knots name: Bitcoin Knots
version: "27.1.2-swappable.3" version: "27.1.2-swappable.4"
tagline: Run your personal node powered by Bitcoin Knots tagline: Run your personal node powered by Bitcoin Knots
description: >- description: >-
Take control of your digital sovereignty by running a Bitcoin node that aligns with your needs and preferences. Take control of your digital sovereignty by running a Bitcoin node that aligns with your needs and preferences.
@ -25,7 +25,8 @@ gallery:
path: "" path: ""
defaultPassword: "" defaultPassword: ""
releaseNotes: >- releaseNotes: >-
Important bug fixes. This release fixes a bug that prevented some apps from connecting to Bitcoin Knots.
**🔔 And in case you missed it:** **🔔 And in case you missed it:**