Update Bitcoin Core
Update Bitcoin Core to newer version
Verify what your current version is:
bitcoind --versionFetch the latest changes:
cd ~/bitcoingit fetch --allShow the latest version tags:
git describe --tags `git rev-list --tags --max-count=20`Switch to the latest stable version:
git checkout -f <version-tag>Clear files and outputs from the previous build process:
make cleanNow create the configuration files:
./autogen.shUse one of the following two commands to apply the configuration files:
./configure --without-gui # OPTION 1: Wallet functionalty enabled
./configure --without-gui --disable-wallet # OPTION 2: Wallet functionality disabledCompile the source code:
make -j $(nproc)Once the compilation is done, we stop Electrs and bitcoind:
sudo systemctl stop electrs.servicesudo systemctl stop bitcoind.serviceNow we can update the binaries system-wide:
sudo make installFinally we can restart bitcoind and Electrs:
sudo systemctl start bitcoind.servicesudo systemctl start electrs.serviceYou can check your new version with:
bitcoind --versionLast updated
Was this helpful?