mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2024-11-11 16:09:18 +00:00
Update Bitcoin to v23 (#109)
Co-authored-by: kroese <kroese@users.noreply.github.com>
This commit is contained in:
parent
a8f6604c2e
commit
df38830bc9
|
@ -28,7 +28,7 @@ services:
|
||||||
ipv4_address: $APP_BITCOIN_IP
|
ipv4_address: $APP_BITCOIN_IP
|
||||||
|
|
||||||
bitcoind:
|
bitcoind:
|
||||||
image: lncm/bitcoind:v22.0@sha256:37a1adb29b3abc9f972f0d981f45e41e5fca2e22816a023faa9fdc0084aa4507
|
image: lncm/bitcoind:v23.0@sha256:57317c90d89156a30327fe1b8e51b836e0fd1a8ba13721eb2e75e6b35a570e26
|
||||||
command: "${APP_BITCOIN_COMMAND}"
|
command: "${APP_BITCOIN_COMMAND}"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
stop_grace_period: 15m30s
|
stop_grace_period: 15m30s
|
||||||
|
|
|
@ -4,6 +4,7 @@ export APP_BITCOIN_NODE_IP="10.21.21.8"
|
||||||
export APP_BITCOIN_DATA_DIR="${EXPORTS_APP_DIR}/data/bitcoin"
|
export APP_BITCOIN_DATA_DIR="${EXPORTS_APP_DIR}/data/bitcoin"
|
||||||
export APP_BITCOIN_RPC_PORT="8332"
|
export APP_BITCOIN_RPC_PORT="8332"
|
||||||
export APP_BITCOIN_P2P_PORT="8333"
|
export APP_BITCOIN_P2P_PORT="8333"
|
||||||
|
export APP_BITCOIN_TOR_PORT="8334"
|
||||||
export APP_BITCOIN_ZMQ_RAWBLOCK_PORT="28332"
|
export APP_BITCOIN_ZMQ_RAWBLOCK_PORT="28332"
|
||||||
export APP_BITCOIN_ZMQ_RAWTX_PORT="28333"
|
export APP_BITCOIN_ZMQ_RAWTX_PORT="28333"
|
||||||
export APP_BITCOIN_ZMQ_HASHBLOCK_PORT="28334"
|
export APP_BITCOIN_ZMQ_HASHBLOCK_PORT="28334"
|
||||||
|
@ -24,10 +25,10 @@ if [[ ! -f "${BITCOIN_ENV_FILE}" ]]; then
|
||||||
BITCOIN_RPC_AUTH=$(echo "$BITCOIN_RPC_DETAILS" | head -2 | tail -1 | sed -e "s/^rpcauth=//")
|
BITCOIN_RPC_AUTH=$(echo "$BITCOIN_RPC_DETAILS" | head -2 | tail -1 | sed -e "s/^rpcauth=//")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "export APP_BITCOIN_NETWORK='${BITCOIN_NETWORK}'" > "${BITCOIN_ENV_FILE}"
|
echo "export APP_BITCOIN_NETWORK='${BITCOIN_NETWORK}'" > "${BITCOIN_ENV_FILE}"
|
||||||
echo "export APP_BITCOIN_RPC_USER='${BITCOIN_RPC_USER}'" >> "${BITCOIN_ENV_FILE}"
|
echo "export APP_BITCOIN_RPC_USER='${BITCOIN_RPC_USER}'" >> "${BITCOIN_ENV_FILE}"
|
||||||
echo "export APP_BITCOIN_RPC_PASS='${BITCOIN_RPC_PASS}'" >> "${BITCOIN_ENV_FILE}"
|
echo "export APP_BITCOIN_RPC_PASS='${BITCOIN_RPC_PASS}'" >> "${BITCOIN_ENV_FILE}"
|
||||||
echo "export APP_BITCOIN_RPC_AUTH='${BITCOIN_RPC_AUTH}'" >> "${BITCOIN_ENV_FILE}"
|
echo "export APP_BITCOIN_RPC_AUTH='${BITCOIN_RPC_AUTH}'" >> "${BITCOIN_ENV_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. "${BITCOIN_ENV_FILE}"
|
. "${BITCOIN_ENV_FILE}"
|
||||||
|
@ -38,14 +39,17 @@ elif [[ "${APP_BITCOIN_NETWORK}" == "testnet" ]]; then
|
||||||
BITCOIN_CHAIN="test"
|
BITCOIN_CHAIN="test"
|
||||||
export APP_BITCOIN_RPC_PORT="18332"
|
export APP_BITCOIN_RPC_PORT="18332"
|
||||||
export APP_BITCOIN_P2P_PORT="18333"
|
export APP_BITCOIN_P2P_PORT="18333"
|
||||||
|
export APP_BITCOIN_TOR_PORT="18334"
|
||||||
elif [[ "${APP_BITCOIN_NETWORK}" == "signet" ]]; then
|
elif [[ "${APP_BITCOIN_NETWORK}" == "signet" ]]; then
|
||||||
BITCOIN_CHAIN="signet"
|
BITCOIN_CHAIN="signet"
|
||||||
export APP_BITCOIN_RPC_PORT="38332"
|
export APP_BITCOIN_RPC_PORT="38332"
|
||||||
export APP_BITCOIN_P2P_PORT="38333"
|
export APP_BITCOIN_P2P_PORT="38333"
|
||||||
|
export APP_BITCOIN_TOR_PORT="38334"
|
||||||
elif [[ "${APP_BITCOIN_NETWORK}" == "regtest" ]]; then
|
elif [[ "${APP_BITCOIN_NETWORK}" == "regtest" ]]; then
|
||||||
BITCOIN_CHAIN="regtest"
|
BITCOIN_CHAIN="regtest"
|
||||||
export APP_BITCOIN_RPC_PORT="18443"
|
export APP_BITCOIN_RPC_PORT="18443"
|
||||||
export APP_BITCOIN_P2P_PORT="18444"
|
export APP_BITCOIN_P2P_PORT="18444"
|
||||||
|
export APP_BITCOIN_TOR_PORT="18445"
|
||||||
else
|
else
|
||||||
echo "Warning (${EXPORTS_APP_ID}): Bitcoin Network '${APP_BITCOIN_NETWORK}' is not supported"
|
echo "Warning (${EXPORTS_APP_ID}): Bitcoin Network '${APP_BITCOIN_NETWORK}' is not supported"
|
||||||
fi
|
fi
|
||||||
|
@ -54,6 +58,7 @@ BIN_ARGS=()
|
||||||
BIN_ARGS+=( "-chain=${BITCOIN_CHAIN}" )
|
BIN_ARGS+=( "-chain=${BITCOIN_CHAIN}" )
|
||||||
BIN_ARGS+=( "-proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT}" )
|
BIN_ARGS+=( "-proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT}" )
|
||||||
BIN_ARGS+=( "-listen" )
|
BIN_ARGS+=( "-listen" )
|
||||||
|
BIN_ARGS+=( "-bind=0.0.0.0:${APP_BITCOIN_TOR_PORT}=onion" )
|
||||||
BIN_ARGS+=( "-bind=${APP_BITCOIN_NODE_IP}" )
|
BIN_ARGS+=( "-bind=${APP_BITCOIN_NODE_IP}" )
|
||||||
BIN_ARGS+=( "-port=${APP_BITCOIN_P2P_PORT}" )
|
BIN_ARGS+=( "-port=${APP_BITCOIN_P2P_PORT}" )
|
||||||
BIN_ARGS+=( "-rpcport=${APP_BITCOIN_RPC_PORT}" )
|
BIN_ARGS+=( "-rpcport=${APP_BITCOIN_RPC_PORT}" )
|
||||||
|
@ -70,7 +75,6 @@ BIN_ARGS+=( "-txindex=1" )
|
||||||
BIN_ARGS+=( "-blockfilterindex=1" )
|
BIN_ARGS+=( "-blockfilterindex=1" )
|
||||||
BIN_ARGS+=( "-peerbloomfilters=1" )
|
BIN_ARGS+=( "-peerbloomfilters=1" )
|
||||||
BIN_ARGS+=( "-peerblockfilters=1" )
|
BIN_ARGS+=( "-peerblockfilters=1" )
|
||||||
BIN_ARGS+=( "-deprecatedrpc=addresses" )
|
|
||||||
BIN_ARGS+=( "-rpcworkqueue=128" )
|
BIN_ARGS+=( "-rpcworkqueue=128" )
|
||||||
|
|
||||||
export APP_BITCOIN_COMMAND=$(IFS=" "; echo "${BIN_ARGS[@]}")
|
export APP_BITCOIN_COMMAND=$(IFS=" "; echo "${BIN_ARGS[@]}")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Bitcoin Core P2P Hidden Service
|
# Bitcoin Core P2P Hidden Service
|
||||||
HiddenServiceDir /data/app-$APP_ID-p2p
|
HiddenServiceDir /data/app-$APP_ID-p2p
|
||||||
HiddenServicePort $APP_BITCOIN_P2P_PORT $APP_BITCOIN_NODE_IP:$APP_BITCOIN_P2P_PORT
|
HiddenServicePort $APP_BITCOIN_P2P_PORT $APP_BITCOIN_NODE_IP:$APP_BITCOIN_TOR_PORT
|
||||||
|
|
||||||
# Bitcoin Core RPC Hidden Service
|
# Bitcoin Core RPC Hidden Service
|
||||||
HiddenServiceDir /data/app-$APP_ID-rpc
|
HiddenServiceDir /data/app-$APP_ID-rpc
|
||||||
|
|
|
@ -2,7 +2,7 @@ manifestVersion: 1
|
||||||
id: bitcoin
|
id: bitcoin
|
||||||
category: Finance
|
category: Finance
|
||||||
name: Bitcoin Node
|
name: Bitcoin Node
|
||||||
version: "22.0-build-2"
|
version: "23.0"
|
||||||
tagline: Run your personal node powered by Bitcoin Core
|
tagline: Run your personal node powered by Bitcoin Core
|
||||||
description: >-
|
description: >-
|
||||||
Run your Bitcoin node and independently store and validate
|
Run your Bitcoin node and independently store and validate
|
||||||
|
@ -32,4 +32,30 @@ gallery:
|
||||||
- 3.jpg
|
- 3.jpg
|
||||||
- 4.jpg
|
- 4.jpg
|
||||||
path: ""
|
path: ""
|
||||||
defaultPassword: ""
|
defaultPassword: ""
|
||||||
|
releaseNotes: >-
|
||||||
|
- P2P and network changes
|
||||||
|
|
||||||
|
- Fee estimation changes
|
||||||
|
|
||||||
|
- Rescan startup parameter removed
|
||||||
|
|
||||||
|
- Tracepoints and Userspace, Statically Defined Tracing support
|
||||||
|
|
||||||
|
- Updated RPCs
|
||||||
|
|
||||||
|
- New RPCs
|
||||||
|
|
||||||
|
- File changes
|
||||||
|
|
||||||
|
- Updated settings
|
||||||
|
|
||||||
|
- Tools and Utilities changes
|
||||||
|
|
||||||
|
- GUI changes
|
||||||
|
|
||||||
|
- Low-level changes (RPC and tests)
|
||||||
|
|
||||||
|
- Full details here: https://bitcoincore.org/en/releases/23.0/
|
||||||
|
|
||||||
|
- Bugfix: Use specific Tor port for peers from Tor network
|
||||||
|
|
Loading…
Reference in New Issue
Block a user