diff --git a/Tools/bitcointaprootcc_lottrue/taproot_bip8_lottrue_switch.sh b/Tools/bitcointaprootcc_lottrue/taproot_bip8_lottrue_switch.sh new file mode 100644 index 0000000..8a042e2 --- /dev/null +++ b/Tools/bitcointaprootcc_lottrue/taproot_bip8_lottrue_switch.sh @@ -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." \ No newline at end of file diff --git a/docker-compose-generator/docker-fragments/bitcoin.yml b/docker-compose-generator/docker-fragments/bitcoin.yml index 6b8a69f..b0b63e8 100644 --- a/docker-compose-generator/docker-fragments/bitcoin.yml +++ b/docker-compose-generator/docker-fragments/bitcoin.yml @@ -38,3 +38,6 @@ services: volumes: bitcoin_datadir: bitcoin_wallet_datadir: + +exclusive: + - bitcoin-node \ No newline at end of file diff --git a/docker-compose-generator/docker-fragments/bitcointaprootcc-bip8-lottrue.yml b/docker-compose-generator/docker-fragments/bitcointaprootcc-bip8-lottrue.yml new file mode 100644 index 0000000..f4cc596 --- /dev/null +++ b/docker-compose-generator/docker-fragments/bitcointaprootcc-bip8-lottrue.yml @@ -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 \ No newline at end of file