In this guide I will be showing the steps I used to get a bitcion full node running.
It is based mainly on the bitcoin core full node guide however I also used some info from the Mastering Bitcoin book
In order to run a full node your computer needs to meet certain performance metrics.
- Desktop or laptop hardware running recent versions of Windows, Mac OS X, or Linux.
- 350 gigabytes of free disk space, accessible at a minimum read/write speed of 100 MB/s.
- 2 gigabytes of memory (RAM)
- A broadband Internet connection with upload speeds of at least 400 kilobits (50 kilobytes) per second
- An unmetered connection – download usage is around 20 gigabytes a month, plus around an additional 340 gigabytes the first time you start your node.
- 6 hours a day that your full node can be left running.
If you meet these requirements you can continue
Install Ubuntu and Bitcoin Core
Install a fresh GNU/linux ubuntu OS instance on your computer, downloadable from ubuntu/downloads
Important to install a fresh OS and verify the hash to ensure it has not been altered – as we are dealing with bitcon and must ensure we are not susceptible to attackers
Once installed, update and upgrade the system.
sudo apt update sudo apt upgrade sudo wget https://bitcoin.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz sha256sum bitcoin-0.20.1-x86_64-linux-gnu.tar.gz # ensure the hash matches the verification signatures sudo tar xzf bitcoin-0.20.1-x86_64-linux-gnu.tar.gz # Install the binaries in /usr/local/bin sudo install -m 0755 -o root -g root -t /usr/local/bin/ bitcoin-0.20.1/bin/*
Now at this point you can decide to go the User interface route
I will be using the Bitcoin core daemon…
Running Bitcoin Core Daemon
Start the daemon
bitcoind -daemon ...Bitcoin Core starting
To interact wih the daemon we use
There are some useful commands, a complete list can be found at bitcoin developer reference
Once started the daemon will start downloading the blockchain, which is over 300Gb now. So ensure to change the data directory to a storage device that is large enough.
Get the current block count by doing:
bitcoin-cli getblockcount # 194044
The current block count can be found at https://blockchain.info/q/getblockcount
December 14, 2020 10:51 SAST it is 661306
Changing the data directory
By default on linux,
bitcoind will put data in:
To change this create a file called
~.bitcion/bitcoin.conf and add the line:
Ensure the node starts at boot time
Scroll to the bottom and add:
@reboot bitcoind -daemon
The next step is ensuing that your node is accessible to the internet, so let us look at the bitcoin full node guide