#!/usr/bin/env bash

set -euxo pipefail

version=24.0.1

wget \
  -O bitcoin.tar.gz \
  https://bitcoincore.org/bin/bitcoin-core-$version/bitcoin-$version-x86_64-linux-gnu.tar.gz

tar \
  -xzvf bitcoin.tar.gz \
  -C /usr/local/bin \
  --strip-components 2 \
  bitcoin-$version/bin/{bitcoin-cli,bitcoind}
