Add Taproot Client Opt In Option

This commit is contained in:
rockstardev 2021-05-23 21:39:02 -05:00
parent dcb9060b35
commit e88f4a5e49
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#!/bin/bash
if [[ "$0" = "$BASH_SOURCE" ]]; then
echo "This script must be sourced \". taproot_bip8_lottrue_switch.sh\""
exit 1
fi
set -e
if [[ "$BTCPAYGEN_ADDITIONAL_FRAGMENTS" =~ "bitcointaprootcc-bip8-lottrue" ]]; then
read -p "You are already running bitcointaproot.cc BIP8 taproot node release. Type 'bitcoin_core' to change back to the Bitcoin Core release `echo $'\n> '`" yn
if [ $yn != "bitcoin_core" ]; then
exit 0
fi
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="${BTCPAYGEN_ADDITIONAL_FRAGMENTS//bitcointaprootcc-bip8-lottrue/}"
export BTCPAYGEN_EXCLUDE_FRAGMENTS="${BTCPAYGEN_EXCLUDE_FRAGMENTS//bitcoin;/}"
. btcpay-setup.sh -i
cd Tools echo "Configured to use Bitcoin Core release."
exit 0
fi
echo "This script will swap the Bitcoin Core release with a release provided on https://bitcointaproot.cc signed by LukeDashJr and bitcoinmechanicca@protonmail.com with BIP8 LOT=TRUE taproot activation. Additional details can be found on: https://bitcointaproot.cc/#faq_mainline"
read -p " Type 'bitcointaprootcc-bip8-lottrue' to switch to HTTPS://BITCOINTAPROOT.CC FORK OF BITCOIN CORE. `echo $'\n> '`" yn
if [ $yn != "bitcointaprootcc-bip8-lottrue" ]; then
exit 0
fi
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;bitcointaprootcc-bip8-lottrue"
export BTCPAYGEN_EXCLUDE_FRAGMENTS="$BTCPAYGEN_EXCLUDE_FRAGMENTS;bitcoin;"
. btcpay-setup.sh -i
cd Tools
echo "Configured to use https://bitcointaproot.cc release."

View File

@ -38,3 +38,6 @@ services:
volumes:
bitcoin_datadir:
bitcoin_wallet_datadir:
exclusive:
- bitcoin-node

View File

@ -0,0 +1,43 @@
version: "3"
services:
bitcoind:
restart: unless-stopped
container_name: btcpayserver_bitcoind
image: btcpayserver/bitcointaprootcc/0.21.0-bip8-lottrue
environment:
BITCOIN_NETWORK: ${NBITCOIN_NETWORK:-regtest}
BITCOIN_WALLETDIR: "/walletdata"
# rpcport and rpcbind seems duplicates, but they are not
# rpcport is using by some tooling to automatically get
# the rpcport from the configuration file. Do not remove!
BITCOIN_EXTRA_ARGS: |
rpcport=43782
rpcbind=0.0.0.0:43782
rpcallowip=0.0.0.0/0
port=39388
whitelist=0.0.0.0/0
maxmempool=500
expose:
- "43782"
- "39388"
volumes:
- "bitcoin_datadir:/data"
- "bitcoin_wallet_datadir:/walletdata"
nbxplorer:
environment:
NBXPLORER_CHAINS: "btc"
NBXPLORER_BTCRPCURL: http://bitcoind:43782/
NBXPLORER_BTCNODEENDPOINT: bitcoind:39388
volumes:
- "bitcoin_datadir:/root/.bitcoin"
btcpayserver:
environment:
BTCPAY_CHAINS: "btc"
BTCPAY_BTCEXPLORERURL: http://nbxplorer:32838/
volumes:
bitcoin_datadir:
bitcoin_wallet_datadir:
exclusive:
- bitcoin-node