With my recent curiosity into the Bitcoin chain I discovered that is it possible to be part of the validating network. This way i could be one of the first to get the changes in the network and get a live feed to all the transactions that are being made.
In this artikel i will show you how to setup a Bitcoin node without GUI and wallet. We will build the latest version of bitcoind and will run this on a non-root user. All you will need is about 150 GB diskspace, 200 GB upload bandwidth and 20 GB download bandwidth. I used a Debian 8.8 OS for this setup.
We start bij cloning the Git repository.
git clone https://github.com/bitcoin/bitcoin.git
After we cloned the repo we need to install the required dependancies.
<code>apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev</code>
Go to the location of the GIT clone and build the bitcoind application with the following commands.
./configure –without-gui –disable-wallet
Before we start the daemon we need to open tcp port 8333 in the firewall. With iptables you can use the following command.
iptables -A INPUT -i eth0 -p tcp -m tcp –dport 8333 -j ACCEPT
Now that the application is installed we can run it as a non-root user. Create the bitcoin user and login under that user.
Start the Bitcoin daemon.
The bitcoin daemon will now be running. You can show the progress of the network sync with this command.
echo `bitcoin-cli getblockcount 2>&1`/`wget -O – http://blockchain.info/q/getblockcount 2>/dev/null`
Show the amount of open connections.
The Bitcoin daemon should be up and running and be up-to-date in a couple of hours. The next step for me is to create a script that will read the latest changes in the chain and show them (Maybe on this website).