Last active
December 29, 2017 06:48
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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