How to run a SegWit UASF BIP-148 Bitcoin cloud node

If you want to support the Bitcoin network by running your own bitcoin node in the cloud please use the following guide. This is a guide how to deploy and run a bitcoin node with UASFT BIP-148 support on DigitalOcean.

The first step is to create a Ubuntu 16.04 droplet on Digital Ocean. You can use the $10 droplet with 1 GB RAM and 20 GB HDD – this will be enough for a bitcoin node with pruning option. It is recommended to use additional 2 GB of SWAP – How To Add Swap Space on Ubuntu 16.04

It is also recommend to secure your droplet by enabling firewall:

# apt-get install ufw

# ufw allow ssh
# ufw allow 8333
# ufw default deny incoming
# ufw default allow outgoing
# ufw enable

The next step is to install the current version of Bitcoin Core client:

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt update

sudo apt install bitcoin-qt bitcoind

Create a user for running the bitcoin deamon:

# adduser bitcoin
# usermod -a -G sudo bitcoin

Then configure the bitcoin options (bitcoin.conf) to signal SegWit UASF and BIP-148 and to use the “prune” option – in this case your 20 GB HDD of the DigitalOcean droplet is enough because the blockchain will take only 15 GB.

# su – bitcoin
$ mkdir .bitcoin
$ cd .bitcoin
$ nano bitcoin.conf

And add the following linest to the bitcoin.conf file:

prune=15000

uacomment=UASF-SegWit-BIP148

Save the file and press control-D to log out of the bitcoin user and become root again. Then you need to set up the bitcoin daemon to auto-run. Create a startup file:

# nano /etc/systemd/system/multi-user.target.wants/bitcoind.service

And put the followin content inside:

[Unit]
Description=Bitcoin Server
After=network.target
After=syslog.target

[Install]
WantedBy=multi-user.target
Alias=bitcoind.service

[Service]
User=bitcoin
Group=bitcoin

# Start main service
ExecStart=/usr/bin/bitcoind
ExecStop=/usr/bin/bitcoin-cli stop
Restart=always
PrivateTmp=false

Reload systemd and start bitcoind and voila – your bitcoin node in the cloud hosting is ready to signal the SegWit UASF and BIP-148 support!

# systemctl daemon-reload
# systemctl restart bitcoind
# systemctl status bitcoind

 

 

 

 

 

Leave a Reply