P2Pool Setup

The ethos of crypt currencies is to decentralise, so why use a centralised mining pool? your giving the power back to a few and centralising the network kinda going against the ethos ūüėČ

P2Pool is a way of creating a decentralized mining pool creating a peer-to-peer network of miner nodes, giving the power back to the people as such. More info can be found here.

linode-logo_standard_light_small I use linode for all my 24/7 server operations, their pricing is reasonable and have a presence in several countries around the globe allowing you to put your servers near your users demographic reducing latency which is critical for good mining responses.

To start with I went with the a “Ubuntu 12.04 LTS” profile when setting up the server. I had a go with the “Ubuntu 14.04 LTS” profile, but had a lot of stability problems when the pool was running so went back a version and the issues went away. I’m sure this will be dealt with in a newer version of the P2Pool code and at some point I’ll get around to updating the servers.

So lets get started by getting things up to date

sudo apt-get update
sudo apt-get upgrade

and then install some prerequisites

sudo apt-get install python-software-properties screen git python-rrdtool python-pygame python-scipy
sudo apt-get install python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev
sudo apt-get install python-dev libboost-all-dev libdb++-dev autoconf automake ncurses-dev libdb5.1-dev libdb5.1++-dev libssl-dev

Everything is now ready to build up the feathercoin daemon

cd ~/ ; git clone https://github.com/FeatherCoin/Feathercoin.git ; cd ~/Feathercoin/src  ; make -f makefile.unix USE_UPNP=- ; mv feathercoind ~/ mkdir ~/.feathercoin

Create and edit feather coin.conf

nano -w ~/,feathercoin/feathercoin.conf

Insert the following text

Start the feathercoin daemon


The daemon should indicate that the server has started, the blockchain will now begin to download, this is going to take some time! you can check progress by running the following command

~/feathercoind getinfo

You can carry on the setup at this point but there are going to be problems getting the P2Pool up and running until the blockchain has sync’ed. The current block count can be found here

Get the P2Pool modified code for feathercoin, this version has been edited for the NeoScrypt fork that took place at block 432,000

cd ~/ ; git clone https://github.com/wellenreiter01/p2pool-neoscrypt.git
sudo cd ~/p2pool-neoscrypt/neoscrypt/ ; python setup.py install

Your about done, once the blockchain has synced (see above) you can fire up your P2Pool node and start mining against it;

screen -d -m -S ftcpool ~/p2pool-neoscrypt/run_p2pool.py --net feathercoin -f 1 -a 6qVeZcweUu3s8mS79ebaFri73pc3AW7P9f --donate 0  --w 19327 feathercoinrpc generateastrongpassword -n p2pool.neoscrypt.de -n

Lets talk briefly about a few of the options in the command

-f = The % pool fee you wish to charge

-a = The address fees are paid out to

–donate = a % donation to the person who wrote the original software

–w = port number

feathercoinrpc = rpcuser specified in feathercoin.conf

generateastrongpassword = rpcpassword specified in feather coin.conf

-n = additional nodes on the network to be hardcoded

screen -r will open up the P2Pool console so you can see what is going on.

That really is about it, if you want to take a look at my pools they can be found at the following addresses




You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *