Run a CaffeeCoin Node

Running a CaffeeCoin Node ensures that the blockchain is more secure, and allows you to host your own wallet. This makes the Blockchain more reliable for everyone.


Step 1. In Order to host a CaffeeCoin Node you need a good internet connection and at least 2GB of RAM and 200GB of storage, and a Linux Distro running Ubuntu 18.04 LTS


Step 2. Download the Source Code or clone it from Github into your node

Click Here For The Source Code

cd /home

git clone https://github.com/NLC1609/caffeecoin

Put the Source Code into the /home folder


Step 3. Copy and paste the commands below into your terminal


sudo apt-get update && apt-get upgrade

sudo apt-get install build-essential

sudo apt-get install autoconf libtool pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libqt4-dev libcanberra-gtk-module libdb++-dev

cd ~


Step 4. Install BerkeleyDB using the Commands Below


wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

tar -xvf db-4.8.30.NC.tar.gz

cd db-4.8.30.NC/build_unix

mkdir -p build

BDB_PREFIX=$(pwd)/build

../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX

sudo make install


Step 5. Build and Compile CaffeeCoin Core(might take a while)


cd /home/caffeecoin

chmod -R 775 /home/caffeecoin

./autogen.sh

./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/"

make


Step 6. Finishing Up


cd ~

cd /home/caffeecoin/src

./caffeecoind (If there is no error, everything has been done correctly, if not please go to the discord or forums for help)

ctrl+z

cd ~

cd .caffeecoin (If you don't have this folder just do mkdir .caffeecoin then cd into it)

vim caffeecoin.conf

press "i" type in this

rpcuser=coinuser
rpcpassword=coinpassword
rpcallowip=127.0.0.1
daemon=1

press esc type ":wq"

cd ~

reboot your server

sudo su

cd /home/caffeecoin/src

./caffeecoind
if you get this message ("CaffeeCoin Core is starting") then it works! Congratulations you are running your very own CaffeeCoin Blockchain!

You can also type ./caffeecoin-cli getinfo and see whether the connections are more than one, and that will confrim whether your node is connected or not.



Thank You So Much!