P2pool is a fully decentralized mining pool that uses peer to peer networking to process blocks and divide work. There are plenty of guides that help more experienced users to install this software on their computers. However not many will go in to easy to follow and understand instructions for the less experienced user. P2pool should be easy to understand and install for everyone to utilize and bring the true meaning of Litecoins and bitcoins as a decentralized currency.
I get very frustrated following all the steps and for some reason it does not work (usually my fault for not knowing exactly what the person meant) so I decided that the best way is to actually do this is by putting up easy to understand screen captures that show exactly every step of the way.
I would like to thank SUPA for his great guide, as it did help me a great deal filling in things I missed elsewhere. So I will take his links and expand them to this guide. This will be a Windows 32bit version
install for p2pool miner client.
I assume you all have the Litecoin wallet installed if not, install it now. It will take time to download the full blockchain. Be sure to have it before you run p2pool.
Here we go1
You need a WINRAR program to unzip them in a folder. The Winrar unzip program has a right click menu feature which helps unzip the zipped file into an easy quick folder next to the file. I like functions like this to make things simply easy and a great deal quicker than going through a menu from a GUI. I have placed a link below so you can get one too.
There are 64 bit OS's out there. If your not sure which one you you have then you most likely have a 32bit. Now go ahead and download the programs below and place them on your desktop. It will be easier to work with them all in one place.P2pool
Version 11.4 updatedPython version 2.7
This will be your CPU minerhttp://www.mediafire.com/?0g2wi33437dawbshttps://bitcointalk.org/index.php?topic=62414.0
When your done you should have them on your desktop.3
We right click the P2pool zipped folder and select [Extract to p2pool_win32_11.2\]
from the menu.
Now we go find the extracted folder (should be somewhere on your desktop) and go into it and find the file called run_p2pool
. Once you found it right click it then [send to]
and then [Desktop (create shortcut)]
from those menus.4
Ok we now should also see a new shortcut that points to the file in the folder we were just in. Now we want to right click the newly created short cut called run_p2pool
and go to [Properties]
. We are going to edit the target box to have p2pool work as a litecoin pool server. 5
In the target box you add --net litecoin at the end of whats written in that box
see picture below. Apply the changes and press OK. See the screen shot below. Make sure there are 2 dashes before the net litecoin. 6
Now we do the same for Scryptminer GUI_r10
by right clicking the zip folder and selecting [extract to Scryptminer GUI_r10\]
. After all we will be needing a miner to work out the hashes to communicate with the p2pool server. The difference here is we will not be going into the properties to add anything. 7
Again we open the newly created folder and find the file called Scryptminer
and right click it and create a shortcut and send to
Left click the shortcut and wait for it to load. Fill in the text boxes with the instructions I have added below. RPC Server and the port have to be exactly as shown below. The user and password are up to you to decide.Threads = Put the number or cores your cpu has
RPC Server = http://127.0.0.1 or URL
Username = Choose a username (This will be located in P2Pool statics page as a miner. See note below.)
Password = Choose a long password (won't need to remember it) (eg. 1gl7yPnB56xYxXS9g8rWxKFdam9Pplq)
Port = This needs to be 9327 (Communicates with P2pool network)
The user and password is not a real issue to p2pool because p2pool uses your receiving address in your wallet to forward your payments.
A strong password is always a good idea however your not required to remember it so a series of numbers or leters can be used.
What ever you put as a username will show up here Book mark this link in your browser >>> http://127.0.0.1:9327/static/ <<<
When P2pool server is running visit your bookmarked link, go into the Graphs
section and you will find the name of the USER
you selected here as a unique miner along with any other miner connected to your P2pool server.
This will be comparably similar to running a pool that you operate locally on your LAN (Local Access Network 127.0.0.1)
. Now this could be expanded on to run as a NODE
to allow your p2pool server to accept other computers outside your local access network (LAN) but that will not be the extent of what we are trying to accomplish here. However it can be done as a more expert user and the information can be located to expand this elsewhere to adjust p2pool to perform as larger public pool. I will not include instruction for that on this guide.
When that is done shut down the program and start it again
and confirm that the info has remained. Then close it again. See illustration below9
Find the program on your desktop called Python-2.7.3
and install it. Follow the instructions10
Find the program called Twisted-12.3.0.win32-py2.7
and install it.11
Find the program called Zope.interface-3.8.0.win32-py2.7
and install it.12
Ok now we need to create the file called litecoin.conf
and if you have never done this I'll show you where and how to do it. We need this file in a folder that is usually hidden. We need the file there to have the file available globally.A)
Click start button and type in the text box %appdata%
after a second of searching a folder will appear called Roaming
. See picture below. Enter that folder and find the Litecoin
folder and enter that folder as well.
For Windows XP users the Litecoin folder is directly located in "C:\Documents and Settings\<user>\Application Data" Thanks to Carnth and FoxcoinB)
Ok now we right click and create
a new text document file and open it
so we can edit it. C) Copy and paste
the lines below into the newly created text file.
We now can save the file named as litecoin.conf
by selecting it as all files
. This is a crucial step. By selecting all files you are enabling the file to be saved with the extension .conf
See screen capture below NOTE :Locate the file and make sure it is saved correctly. Before you continue
We want it saved as litecoin.conf
. We don't want the file saved as litecoin.conf.txt
(which is incorrect) 13
Ok now close
down your Litecoin wallet and load
it back up again. While the litecoin wallet loads it will be reading the newly created litecoin.conf file. As we have instructed it to have it be running in a server mode. Along with specific user and password information that the p2pool server and your wallet will be accepting to communicate. This will also be used to show statistics in your browser along with passing you payments to the address located in your wallet. Nifty eh? 14
Now we double click the run_p2pool - Shortcut
on your desktop and wait for the loading of the shares
and it successfully connects.15 Double click Scryptminer - Shortcut
and click the Start mining button at the top. 16) Refer back to step 8
as it should be already stored but just double check to make sure all is correct as far as the RPC Server and Port is concerned.
RPC Server = http://127.0.0.1NOTE: --threads
Username = whatever you want
Password = whatever you want
Port = 9327
= number of cores in your CPU.
eg. --threads 2 (for Intel Atom Processor N450 [1.66GHz] which is a dual core
--threads 6 (AMD Phenom(tm) II X6 1045T Processor [2.97GHz] is a 6 core
Then press the button [Start Mining]
Thats it!Note: the P2pool program along with the Litecoin wallet and its complete block chain needs to be loaded and running before the miner is started.
Now that's just using your CPU in order to use other devices such as GPU's and FPGA's you will need other types of mining programs and they have instructions on their use. However the fields inputs are the same.Note:
P2pool pays you directly to your wallet. It automatically enters a receiving address for you if you don't have one already and forwards payments directly to you over time. To put it simply, as the network of peers pass shares to one an other they confirm transactions of payments and that usually requires 120 confirmations. So be patient.
Minerd.exe is the DOS program that is required by Scryptminer to work. It is located in the same unzipped folder as Scryptminer
You can say Scryptminer is the GUI (Graphic User Interface) for minerd.exe. It passes the arguments to minerd.exe and saves all inputted information to a file called easyminer.conf on shutdown. Easyminer.conf is loaded at the start up of Scryptminer so you don't have to re-apply all the information every time you start the program again. We will next make a shortcut of minerd.exe and send it to the desktop where we will edit it after.
Below I have screen captured the process on how you can use the minerd.exe program and bypass Scryptminer.
Now we add the arguments in the illustration below to the end of what is written in the target text box. I have also screen captured the output of minerd.exe to show you the arguments available for use and their syntax. To help you I have put it here for easy copy and paste.NOTE: --threads
= number of cores in your CPU.
eg. --threads 2 (for Intel Atom Processor N450 [1.66GHz] which is a dual core
--threads 6 (AMD Phenom(tm) II X6 1045T Processor [2.97GHz] is a 6 coreTo find out how many cores you have open taskmanager on the performance tab. that will show you. I'm sure most of you know how many cores you have.
--threads 2 --scantime 4 --url http://127.0.0.1:9327/
Just like scryptminer, minerd.exe should be run after P2pool shares are fully loaded. See below illustration.
When you see this run the newly created minerd.exe short on your desktop and it should begin to look like this. Hopefully with more hashes. See below
Bookmark this link in your browser to give you statistics on your mining progress. (Thanks to shyliar)http://127.0.0.1:9327/static/
Bookmark this in your browser for global stats on the network as a whole. Gives out payments to top contributors and confirmation info.http://p2pool.info/
P2pool Wiki Pagehttps://en.bitcoin.it/wiki/P2Pool
Optional arguments: -h, --help
show this help message and exit --version
show program's version number and exit --net litecoin user password
(this tells the software what network to talk to...because the same software can talk to the bitcoin p2pool network if you were mining bitcoin) user
(thats the user name in your litecoin.conf file) password
(thats the big giant password you made in your litecoin.conf for security something like XXCCFFgw2u367ryehfvv3vh3hCCCCC112f) --testnet
use the network's testnet --debug
enable debugging mode --address LiT5T2PwFnGFrMA2MqCeh1AkveSQb2QJFf
(That is specifying a wallet address that is not in your local wallet...somewhere else like my laptop in the example above....now remember to change the wallet address from what I've shown otherwise you'll be sending me some coin....well...on second though maybe leave it that way for the first two hours
). -shyliar --datadir DATADIR
store data in this directory (default: <directory
run_p2pool.py is in>/data) --logfile LOGFILE
log to this file (default: data/<NET>/log) --merged MERGED_URLS
call getauxblock on this url to get work for merged
mining (example: http://ncuser:firstname.lastname@example.org:10332/
) --give-author DONATION_PERCENTAGE
donate this percentage of work towards the development
of p2pool (default: 1.0) --iocp
use Windows IOCP API in order to avoid errors due to
large number of sockets being open --irc-announce
announce any blocks found on
disable submitting caught exceptions to the author --disable-upnp
don't attempt to use UPnP to forward p2pool's P2P port
from the Internet to this computer
P2pool interface: --p2pool-port PORT
use port PORT to listen for connections (forward this
port from your router!) (default: bitcoin:9333,
litecoin:9338, terracoin:9323) -n ADDR[:PORT], --p2pool-node ADDR[:PORT]
connect to existing p2pool node at ADDR listening on
port PORT (defaults to default p2pool P2P port) in
addition to builtin addresses --max-conns CONNS
maximum incoming connections (default: 40) --outgoing-conns CONNS
outgoing connections (default: 6)
Worker interface: -w PORT or ADDR:PORT, --worker-port PORT or ADDR:PORT
listen on PORT on interface with ADDR for RPC
connections from miners (default: all interfaces,
bitcoin:9332, litecoin:9327, terracoin:9322) -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE
charge workers mining to their own bitcoin address (by
setting their miner's username to a bitcoin address)
this percentage fee to mine on your p2pool instance.
Amount displayed at http://127
I guess most people miss this as p2pool loads however 1% does go towards the development of p2pool. I wanted this to be in full disclosure.
Using the P2pool Static Webpage
We first need to visit the bookmarked page http://127.0.0.1:9327/static/
. If you have not bookmarked it yet do it now. Highlight the address your P2pool server forwards payments to and copy it.
You can either go through the menu of your browser to find the "find on this page" Option or press ctrl+F. We need to find your address in the list of addresses that have received a share of the found block payout. After a successful search click on the link named after your address.
Note: This will only be possible after a successful payout. After all your address needs to be found in the list of recipients that have received a payment from the block found.
Now this is also a great page to bookmark and revisit from anywhere you have access to the internet. You can now check on your wallet values away from the computer.