Skip to content

Instantly share code, notes, and snippets.

@theeye-io
Last active December 29, 2017 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theeye-io/cd9dd3fcf035569e3db09c901adfe607 to your computer and use it in GitHub Desktop.
Save theeye-io/cd9dd3fcf035569e3db09c901adfe607 to your computer and use it in GitHub Desktop.
Upgrade your bitcore full node for segwit according to https://blog.bitpay.com/bitcore-segwit-activation/
#!/bin/bash
version="1.14.5"
wget https://github.com/btc1/bitcoin/releases/download/v$version/bitcoin-$version-x86_64-linux-gnu.tar.gz
wget https://github.com/btc1/bitcoin/releases/download/v$version/SHA256SUMS
sha256sum=$(sha256sum bitcoin-$version-x86_64-linux-gnu.tar.gz|awk '{ print $1 }')
grep $sha256sum SHA256SUMS
if [ $? -eq 0 ];then
#Install
tar zxvf bitcoin-$version-x86_64-linux-gnu.tar.gz
#Replace bitcoind binary
mv bitcoin-$version /usr/local/bin/
else
echo Incorrect Bitcoin Download.
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment