lnd/scripts/install_bitcoind.sh

11 lines
326 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ev
BITCOIND_VERSION=${BITCOIN_VERSION:-23.0}
2021-11-03 23:33:13 +01:00
docker pull lightninglabs/bitcoin-core:$BITCOIND_VERSION
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:$BITCOIND_VERSION)
sudo docker cp $CONTAINER_ID:/opt/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind
docker rm $CONTAINER_ID