Author Topic: [GUiDE] Supa's Noob Guide to Litecoin P2Pool Mining (Windows) UPDATED 20/02/2013  (Read 46372 times)

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows) *UPDATED February 20th 2013*:
_____________________________________________________________________________________________
   
1. Download P2Pool @ http://u.forre.st/u/rliakpxs/p2pool_win32_11.2.zip (11.2) *HARDFORK: Upgrade is required! Hardfork will happen after 95% of the pool's hash rate has upgraded. Everybody having not upgraded will be split off into a tiny P2Pool.* *Changes: (in 9.4) * Fixed inefficient memory usage - Resident memory went from 736MB to 266MB for Diablo-D3 *Changes: (in 11.2) * * Fixed a major memory leak of peer objects, as far as I know the cause of all P2Pool memory issues recently Found by Prattler, whose donation address is 18uyCqDvP6VQUeyTuA5s6x1Ft8x8om767J
2. Download ScryptMiner @ http://www.mediafire.com/?0g2wi33437dawbs
3. Download Litecoin Client @ https://github.com/downloads/litecoin-project/litecoin/litecoin-0.6.3c-win32-setup.exe
4. Extract P2Pool to it's own folder.
5. Extract ScryptMiner to it's own folder.
6. Install the Litecoin Client (Wallet) Software.
7. Once you have downloaded the full Litecoin block chain go into C:\Users\[Your User Account]\AppData\Roaming\Litecoin and make a litecoin.conf file add the following on a seperate line.. it should look like this..
   
It can take several hours to download all the blocks in the blockchain on a Broadband Internet Connection
   
All file sources provided in this guide are direct from the developers DO NOT use any other links all the files in this guide come from TRUSTED SOURCES!
   
rpcuser=user
rpcpassword=password
server=1
   
7 1/2. Exit and Re-Open your Litecoin client for the litecoin.conf to enable
7 3/4. If your Litecoin Client is crashing while using the Litecoin RPC Server I will be updating this guide with info on how to use the Litecoin Daemon instead (This Doesn't Crash your Litecoin Client) (I'm currently going on 6+ hours without my Litecoin Client crashing using the Litecoin RPC Server).
8. Save the litecoin.conf file as "All Files/Types" in notepad and make sure the extension is .conf if it's .conf.txt that will not work it has to be litecoin.conf with that information EXACTLY like it's formatted
9. Now go into your P2Pool folder , highlight run_p2pool.exe , right click and Send To Desktop > Create Shortcut
10. Go onto your Desktop where the shortcut to run_p2pool.exe is , right click and go to properties , under target go to the very end , put a space and --net litecoin user password
   
it should look like this..
   
run_p2pool.exe" --net litecoin user password
   
11. Now go into your ScryptMiner folder and find ScryptMiner.exe open it and you will see the ScryptMiner GUi.
   
Enter the following in the fields
   
RPC Server: http://127.0.0.1
Port: 9327
User: [Whatever you want]
Password: [Whatever you want]
   
11 1/2. *EXTRA HASHRATE: If you want some additional hashrate and to limit the amount of stales you can replace the current cpuminer files with Pooler's CPUMiner (minerd)
   
11. 2/3 *EXTRA EXTRA HASHRATE: To reduce stress on your CPU it's advised to always be using minerd.exe in Low Priority to do this..
   
Press Alt + Ctrl + Delete on your Keyboard and Choose Start Task Manager
   
Go to processes and find your "minerd.exe" process
   
Right Click on it and go Set Priority > Low
   
11 3/4 *EXTRA EXTRA EXTRA HASHRATE: If you happen to be mining on Litecoin P2Pool and Bitcoin P2Pool at the same time it is advised to set your CGMiner to the highest intensity for normal hashrate to do so..
   
Well mining on CGMiner..
   
Press G on the CGMiner Command Prompt
Press I on the CGMiner Command Prompt
Type in 14
Press Enter
   
This should bring back your normal hashrate while minng Bitcoins on P2Pool
   
*EXTRA NOTE ABOUT EXTRA HASHRATE: Your best option to maintain your normal hashrate is to also set Low Priority on your minerd.exe
   
To do this..
   
Press ALT + CTRL + DELETE
   
Press Start Task Manager
   
Go to the Processes Tab
   
Find your minerd.exe
   
Right Click it and Select Set Priority > Low
   
This should bring back your normal hashrate while mining both Bitcoins and Litecoins
   
*WARNING: There has not been any reports of systems becoming unstable while Intensity is set to 14 on CGMiner and minerd is set to Low Priority. If however your system becomes unstable IMMEDIATELY STOP using this fix.
   
   
A warning will come up stating the process could become unstable there is no issue with using this fix from what I've seen but if your system starts to become unstable when using this fix IMMEDIATELY stop using it!
   
To do this simply copy over the files in the ScryptMiner folder with the ones from Pooler's CPUMiner (minerd)
   
Windows x86 (32 Bit): https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-win32.zip
Windows x64 (64 Bit): https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-win64.zip
*LARGE SPEED IMPROVEMENT on Pooler's CPUMiner 2.1.5 and up "The speedup should range from 25% for Intel to 45% for AMD, but only in 64-bit mode"
   
*NOTE: If you prefer to use JUST Pooler's CPUMiner 2.2.3 you can use it through commandline to do this..
   
Download Pooler's CPUMiner 2.2.3 (32 bit) and Pooler's CPUMiner 2.2.3 (64 bit)
@ https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-win32.zip  (32 bit)
@ https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-win64.zip (64 bit)
   
Extract Pooler's CPUMiner 2.2.3 (32 bit) or Pooler's CPUMiner 2.2.3 (64 bit) to a folder.
   
Open your Pooler's CPU Miner 2.2.3 (32 bit) folder or Pooler's CPU Miner 2.2.3 (64bit) folder and find the file "minerd.exe" right click this file and select Send To > Desktop Create Shortcut
   
Find the shortcut to minerd.exe on your Desktop right click it and go to Properties.
   
In the "Target" field go to the very end of the line add a space and enter the following it should look like this
   
minerd.exe -o http://127.0.0.1:9327 -u user -p password
   
Now your shortcut is made click OK to save it and close Properties Screen for your Litecoin P2Pool minerd.exe shortcut
   
 "Running P2Pool:
        Run P2Pool with the "--net litecoin" option.
        Run your miner program, connecting to 127.0.0.1 on port 9327.
        Forward port 9338 to the host running P2Pool.
         
        Litecoin's use of ports 9332 and 9332 conflicts with P2Pool running on
        the Bitcoin network. To avoid problems, add these lines to litecoin.conf
        and restart litecoind:
            rpcport=10332
            port=10333 "
   
11 4/5. Make sure your Litecoin client is still open if it's not reopen it , your Litecoin client needs to be open for P2Pool to have access to the Litecoin RPC Server.
11 5/6. I will add to the guide with info on how to use the Litecoin Daemon instead of the Litecoin RPC Server soon.
12. Hit Start Mining or Double Click your Litecoin P2Pool minerd.exe shortcut
13. If all goes well you should be mining Litecoins on P2Pool.
   
Cheers,
   
SupaDupa
   
If this guide helped you Please Donate @ Lbi12sxJwT6XBuDbvQtVNJzNBTs9Expfxz (Litecoin)
« Last Edit: March 14, 2013, 08:50:00 AM by Supa »

Offline UNOE

  • Newbie
  • *
  • Posts: 4
Re: [GUiDE] SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows)
« Reply #1 on: March 10, 2013, 11:47:22 PM »
Can I mine with cgminer on p2pool, I have 3 7970's and cgminer runs better.

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
Re: [GUiDE] SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows)
« Reply #2 on: March 11, 2013, 03:22:09 AM »
yep of course it's a pool like everything else :D

Offline zylstra

  • Newbie
  • *
  • Posts: 13
Re: [GUiDE] SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows)
« Reply #3 on: March 12, 2013, 03:10:27 AM »
Not sure if this is the correct place for this question, but:

After configuring p2pool and scryptminer and getting the Litecoin client to run (by entering the last 3 lines for litecoin.conf instead of the suggested 5), I received the following errors:

Code: [Select]
[2013-03-11 19:54:36] 1 miner threads started, using 'scrypt' algorithm.
[2013-03-11 19:54:37] HTTP request failed: couldn't connect to host
[2013-03-11 19:54:37] json_rpc_call failed, retry after 30 seconds

How do I fix this?

Thanks!

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
Re: [GUiDE] SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows)
« Reply #4 on: March 14, 2013, 08:08:23 AM »
Try adding this to litecoin.conf and make sure it's litecoin.conf not litecoin.conf.txt or it will not work

rpcuser=user
rpcpassword=password
rpcport=10333
port=10332
server=1

Then connect to the RPC server with your miner

Easiest way to do this is download Pooler's CPUMiner (minerd.exe) or CGMiner

If you are using Pooler's CPUMiner (minerd.exe)

Then extract Pooler's CPUMiner (minerd.exe) to a folder the full thing it's only 2-3 files

Right click on Pooler's CPUMiner (minerd.exe) and Send To > Desktop Create Shortcut

Once the shortcut is on your desktop right click it and go to properties in the target field add the following

After minerd.exe" add a space and add the following

-o http://127.0.0.1:9327 -u user -p password

It should look like this in your target field

minerd.exe" -o http://127.0.0.1:9327 -u user -password

Also make sure once you make the litecoin.conf file you save it and close and reopen your Litecoin Wallet to make sure the RPC Server is running

Then extract P2Pool to it's own folder and run the exe inside the P2Pool folder

once it's running it will poll shares on P2Pool coming from other Peer Relays

Make sure it's running and establishing a connection and you should see it download the share count as well as start connecting to Peers

then run your Pooler's CPUMiner (minerd.exe) shortcut and it should work just fine

If you still have any issues I will boot up some P2Pool Instances just to make sure the method is still the same

MAKE SURE YOU DOWNLOADED THE FULL BLOCKCHAIN OR IT WILL NOT MINE UNTIL YOU HAVE THE FULL BLOCKCHAIN DOWNLOADED!

Hope this helps,

Supa
« Last Edit: March 14, 2013, 08:18:13 AM by Supa »

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
Re: [GUiDE] SupaDupa's Noob Guide to Litecoin P2Pool Mining (Windows)
« Reply #5 on: March 14, 2013, 08:28:58 AM »
Well I can confirm it all works the same and is working %100 for me :(

Offline tidus_13

  • Newbie
  • *
  • Posts: 16
Hey Supa, thanks for this Guide, but i have a noob questions...

So this is how to do a solo mining right?

i am now mining but my question is how do i get de litecoins in my wallet?

Another question is how my others computers mine in the same P2Pool?Can computers outsite of my home?(another internet)

Offline Carnth

  • Administrator
  • Elite Member
  • *****
  • Litecoin Association Member
  • ***
  • Posts: 1688
  • Litecoin Association
So this is how to do a solo mining right?

No, you are not solo mining. This is mining on your own personal node in the P2Pool.


i am now mining but my question is how do i get de litecoins in my wallet?

If you mine on your own personal node, it uses your wallet from the Litecoin Client. They should show up as Mined incoming transactions.
You can also change the username on your miner to your Litecoin wallet address, then P2Pool will payout to that address instead.
Remember, you only get paid when anyone on the P2Pool finds a block.
P2Pool is a PPLNS pool.


Another question is how my others computers mine in the same P2Pool?Can computers outsite of my home?(another internet)

You can do this, but you will have to enable port forwarding through your home router/firewall... and that is a whole other guide.

Offline tidus_13

  • Newbie
  • *
  • Posts: 16
Hey @Carnth, thanks for the answers,

So with this guide if i use "-u user -password" it will payout to my wallet installed in this computer. why isn`t
"-u user -p password" or "-u user -p"


And if i change the username  "-u user -password"   to "-u (address) -password" it will payout to that address?

exemple:

-u (your address) -password

it will mine to your address? you have to keep "run_p2pool.exe" process open in your computer?  what is the password? it should be the same password on the litecoin.conf file?

About port forwarding i know that, but what ports i need to enable? 9327  , 10333, 10332?


thank you in advance. Sorry for my english.

Offline Carnth

  • Administrator
  • Elite Member
  • *****
  • Litecoin Association Member
  • ***
  • Posts: 1688
  • Litecoin Association
Remember you are running 3 different things. They all connect in a row, so to speak.

  • The Litecoin Client
  • The P2Pool Node
  • Your miner

Diagram:

Litecoin Client  <-- connects to --> P2Pool node  <-- connects to -- miner

First, start your Litecoin client. It must open and running for the P2Pool node to work.


Then start the P2Pool node.
When you start the node, it connects to your Litecoin Client to get block information and your wallet.
P2Pool connects to your Litecoin Client through the litecoin.conf information. Make sure that you use the same user and password in the litecoin.conf file.
It uses your wallet to get an address to send payments.

Then start your miner.
Your miner gets the current block info from the P2Pool node.
When mining, the P2Pool node doesn't care about the user and password at all. BUT if you want to mine to a different address, just use the address as the username.
Example:
Code: [Select]
-o http://127.0.0.1:9327 -u L1kjl0Os8892k0ja89123jk -p who-cares



If you want to port forward to allow external miners to use your P2Pool node, then you will need to port forward the P2Pool port. This is the same port you tell your miner to mine on (In the example it is port 9327).

Before you open ports, use extra security and change the username a passwords to something hard to guess.
If you accidentally port forward your Litecoin Client port and some can guess the password, they could steal all your coins.

Only port forward if you really know what you are doing. It is a big security risk if you do the wrong thing.

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
Thanks for the great explanation Carnth you are saving me alot of time :D

Offline ltcbanker

  • Newbie
  • *
  • Posts: 1
The ScryptMiner at mediafire you suggest downloading is infected with trojans according to McAfee anti virus. Is there a clean version somewhere on the web?

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
ltcbanker it's a false positive , dll files are classed as viruses by most Anti-Virus software

Offline pumpbreaks

  • Jr. Member
  • **
  • Posts: 82
HI can i just say thank you for this guide but i am still getting problems.

my litecoin client opens (with this config)

rpcuser=username
rpcpassword=password
rpcport=10333
port=10332
server=1

i open ScryptMiner GUI with the folllowing

http://127.0.0.1
username
password
10332

but the miner does not do anything other than say Miner started. it usually takes a minute until the program starts

i am not sure what to do with p2pool, on the guide it does not mention anywhere how you start it, i tried the shortcut we made in the guide and it just opens and closes really fast. i screen shot the CMD window and attached it. i blank out that password if it was important or something just looks like a bit coin address.

i am using 64 bit windows 8 :( 

Offline Supa

  • Scammer
  • Jr. Member
  • ************
  • Posts: 64
    • ~The Supa Fii Network~
Ahh your problem is you need to right click the P2Pool shortcut go to Properties and where the target field says

run_p2pool.exe

and add the following so it looks like this

run_p2pool.exe" --net litecoin

It's trying to mine on Bitcoin right now which is what P2Pool mines on by default whenever you change the P2Pool Network you are mining on you need to change the network ie --net (whatever network you want)

For example if you wanted to mine devcoin you'd do --net devcoin or litecoin --net litecoin

Bitcoin is the default though
« Last Edit: March 22, 2013, 08:41:22 AM by Supa »