Bitcoin Forum
April 20, 2014, 01:58:50 AM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 415
  Print  
Author Topic: [185 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 694764 times)
forrestv
Sr. Member
****
Offline Offline

Activity: 467


View Profile

Ignore
June 17, 2011, 11:14:22 AM
 #1

P2Pool release 13.4 - commit hash: 8e7cb8223a38bdd4ff55971d2945f5ccb571e063

Windows binary: http://u.forre.st/u/wftncvpn/p2pool_win32_13.4.zip
Windows binary signature: http://u.forre.st/u/eoietnxc/p2pool_win32_13.4.zip.sig
Source zipball: https://github.com/forrestv/p2pool/zipball/13.4
Source tarball: https://github.com/forrestv/p2pool/tarball/13.4

Changes:
* Require Litecoin >=0.8.5.1
* Warn about old versions of Bitcoin and Terracoin
* Many improvements to web interface and graphs
* Fixed error messages being created in bitcoind's debug.log due to invalid message being sent

P2Pool is a decentralized pool that works by creating a P2P network of miner nodes. These nodes work on a chain of shares similar to Bitcoin's blockchain. Each node works on a block that includes payouts to the previous shares' owners and the node itself. There is no central point of failure, making it DoS resistant.

Related:
P2Pool homepage: http://p2pool.in/
P2Pool stats page, made by twmz: http://p2pool.info/
P2Pool subsidies - Several people are donating to all people using P2Pool in order to promote its decentralized nature - https://bitcointalk.org/index.php?topic=57027.0
Litecoin P2Pool status - http://p2pool.litecointools.com/

Things that are not P2Pool (and just people running P2Pool): p2pool.org

Graphs: http://p2pool.info/ http://forre.st:9332/

P2Pool wiki page | GitHub project page
New: Mailing list for urgent news (updates, bugs): http://groups.google.com/group/p2pool-notifications

List of all blocks found: http://blockexplorer.com/address/1Kz5QaUPDtKrj5SqW5tFkn7WZh8LmQaQi4

Getting P2Pool

  • Run bitcoin with the RPC interface enabled - see the next section for instructions on how to do this
  • Download p2pool: (see links at top for binaries!)
    • git: git clone git://github.com/forrestv/p2pool.git
  • Run p2pool:
    • Windows py2exe: run_p2pool.exe
    • Source: python run_p2pool.py
  • Run a miner daemon (see https://en.bitcoin.it/wiki/P2Pool#Miners ) with long polling connecting to 127.0.0.1 on port 9332 with any username and password
    • With all miners, using a high FPS target (30?) or a low intensity (7?) helps a lot with reducing stales.

HOWTO: Bitcoin server mode
You must be running the Bitcoin client, and it must have its RPC interface enabled.

Open the Bitcoin data folder. See https://en.bitcoin.it/wiki/Data_directory

Make a new file named bitcoin.conf (not bitcoin.conf.txt! You might have to go into Control Panel > Appearance and Personalization > Folder Options > View and uncheck 'Hide extensions for known file types'). Paste this into it:

rpcpassword=<A LONG RANDOM PASSWORD THAT YOU DON'T HAVE TO REMEMBER>
server=1


Dependencies for running FROM SOURCE:
  • Bitcoin 0.5.0 or higher
  • Python 2.5 or higher
  • python-argparse for Python 2.6 and lower
  • Twisted (Ubuntu package python-twisted)

Additional options of interest:
    -w PORT: Listen for workers on a port other than 9332.
    -a BITCOIN_ADDRESS: Mine to this address instead of requesting one from Bitcoin.

Last, forward port 9333 through your firewall to the host running p2pool! (Oh, and join #p2pool on freenode!)

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
Buy a Blade, Get a 5-Chip Free!
Start Mining with GAWMiners.com
24/7 Live Phone & Tech Support
Free Hosting & Electricity for 1 Year!

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
1397959130
Hero Member
*
Offline Offline

Posts: 1397959130

View Profile Personal Message (Offline)

Ignore
1397959130
Reply with quote  #2

1397959130
Report to moderator
gmaxwell
Moderator
Hero Member
*
Offline Offline

Activity: 1078


View Profile

Ignore
January 25, 2012, 10:34:37 PM
 #2

In the time since P2Pool's original announcement it has evolved considerably.  I thought  having to wade through hundreds of pages of inapplicable cruft about old versions of the software to get to useful information was a disservice to people here, so I split off the old discussion to a separate archival thread.

P2Pool has come a long way since its humble beginnings: It's now a completely realistic solution for a great many miners. The software is still rapidly developing but it is reliable, featureful, and, of course, P2Pool is critical for the health and welfare of the Bitcoin system: Our trust in the Bitcoin system depends on it being highly decentralized. P2Pool prevents the centralization that non-distributed pools create.  This is important enough to people that P2Pool miners are currently being paid by Bitcoin users to participate.  P2Pool pools payments but mining decisions are still left to all the miners just as bitcoin was intended to work.

This "pool" (really a decentralized/distributed network just like Bitcoin) is still attractive even for people who aren't thinking about the health of Bitcoin overall. P2pool's decentralization is accomplished without compromising on miner profits and, unlike solo mining, while still allowing stable income. The things which p2pool can't do, like provide the utmost low variance (PPS) are offset by the lack of fees and by removing the risk of cheating by pool operators (which is almost undetectable if only done in moderation).

P2Pool isn't ideal for low speed (e.g. CPU) miners, and may never be— but it's absolutely a no brainier for anyone who would even consider solo-mining and a good majority of the people in between.

I'm personally really happy about the new built in per-worker graphs:


I hope to see more useful monitoring features in the future.
Holliday
Sr. Member
****
Offline Offline

Activity: 308



View Profile

Ignore
January 25, 2012, 10:44:55 PM
 #3

In an attempt to help complete noobs, like myself, I've written a hopefully foolproof guide. Please look over this and inform me of any mistakes I've made. If anyone tries this and fails, please let me know what didn't work.

Step by precious step guide for P2Pool mining on Windows 7.

1. Download Bitcoin

2. Download P2Pool

3. Download cgminer

4. Install Bitcoin. Start Bitcoin (if windows asks to Allow Access, choose yes) and wait for it to download the full block chain. Here is a current block count - http://blockexplorer.com/q/getblockcount

5. a. Go into Control Panel > Appearance and Personalization > Folder Options > View >  uncheck "Hide extensions for known file types'" (or leave it unchecked if it already is).

    b. While you are there choose: Show hidden files, folders, and drives. (or leave it selected)

    c. Click OK.

6. Browse to C:\Users\YourUserName\Appdata\Roaming\Bitcoin. (YourUserName will be whatever you entered when you installed windows.)

7. Right click in the folder and choose: New > Text Document. Delete the entire name (including .txt) and type the following: bitcoin.conf (hit enter, then click yes)

8. a. Right click on the bitcoin.conf file and choose edit.

   b. If edit is not available, choose open. Then choose: Select a program from a list of installed programs. Click OK. Double click Notepad.

   c.  i. Once you have the file open and ready to edit type: rpcuser=user (hit enter), rpcpassword=password (hit enter), server=1 (don't type stuff in parenthesis, actually do it, don't type commas)

       ii. Or copy and past this into the file

          
          rpcuser=user
          rpcpassword=password
          server=1
          

   d. Click file in the top left corner and choose save.

   e. After doing this, close and restart Bitcoin.

9. Forward port 9333. (Optional, helps with finding additional peers.)

10. Extract p2pool from p2pool.zip. (Desktop is a great place to extract this folder.)

11. a. Open the p2pool folder, right click run_p2pool.exe and select create shortcut.

     b. Right click the new shortcut and choose properties. Click in the "target" box and move the cursor to the far right. Put a space after run_p2pool.exe and type: user password
    
     c. Click OK.

12. Double click the p2pool short cut. This will start P2Pool. Let it run. (If windows asks you to Allow Access, choose yes)

13. Extract cgminer from cgminer.zip. (Desktop is a great place to extract this folder.)

14. a. Open the cgminer folder, right click cgminer.exe and select create shortcut.

     b. Right click the new shortcut and choose properties. Click in the "target" box and move the cursor to the far right. Put a space after cgminer.exe and type: -o http://127.0.0.1:9332 -u noob -p sauce

     c. Click OK.

15. Double click the cgminer shortcut. This will start cgminer. If you've done everything correctly you should be mining on P2Pool!

(You should change "user" to any username you like and "password" to any password you like (strong passwords are nice). This will help with security. Be sure to change it both times you are required to type it!)

(I will add how to use bitcoind to this later, because the GUI tends to crash)

OK, to use bitcoind instead of the GUI, do the following.

1. a. Browse to C:\Program Files (x86)\Bitcoin\daemon

    b. Right click on bitcoind.exe and select create shortcut.

    c. Right click on the new shortcut and choose properties. Click in the "target" box and move the cursor to the far right. Put a space after bitcoind.exe" and type: -rpcuser=user -rpcpassword=password

2. If Bitcoin-qt is still running, close it and then use the shortcut you've just created to start bitcoind. You should once again be mining on P2Pool.

(Again, if you've changed "user" and "password" be sure to use the correct info here.)

Armory - Security made easy. - If you aren't the sole controller of your private keys, you don't have any bitcoins.
coblee
Donator
Hero Member
*
Offline Offline

Activity: 826


firstbits.com/1ce5j


View Profile WWW

Ignore
January 25, 2012, 10:49:18 PM
 #4

Everyone should start using p2pool. It's the most innovative things since bitcoin itself. It bothers me that Gavin has try to convince Tycho (of deepbit) of his multi-sig proposal before he can implement it, because if deepbit decides to not use the new code, it's dead in the water. And that's so wrong. So people, wake up and use p2pool.

Keep up the good work, forrestv!

Litecoin: http://litecoin.org - LhK2kQwiaAvhjWY799cZvMyYwnQAcxkarr
Casascius physical bitcoins database: http://casascius.appspot.com/
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 742


View Profile

Ignore
January 25, 2012, 11:29:10 PM
 #5

What is the likely cause of this?

Code:
> Failure: twisted.internet.defer.TimeoutError: Getting http://127.0.0.1:8332/ took longer than 5 seconds.

Fairly frequent.  P2pool and bitcoind are running on the same system.

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
eja
Jr. Member
*
Offline Offline

Activity: 39



View Profile

Ignore
January 25, 2012, 11:57:34 PM
 #6

I see the same error when running p2pool and bitcoind on the same (fairly underpowered) system, an asus eeebox with intel atom cpu.
There are load spikes every now and then where bitcoind and p2pool together peg the cpu at 100% and then these errors appear.

It seemed to cause more than average orphans and dead shares in my case so I now run p2pool and bitcoind on a faster system, and I've never seen the error there.

BTC:16iXexzgaBEMxiQTSLwqbVAfKmN8ZqBa8m - LTC:LhfzDKQzez2Mxmtd1wQWJbcp2BuWFyfCtf
YAC:YEZ6p9MgGuapGRY9CFmxep7hJ6ZH9HJ1uN - MSG:BM-2D7fEEFznM1QjGBv1h6qsiEDrtsWmrbTFm
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 742


View Profile

Ignore
January 26, 2012, 12:06:26 AM
 #7

Thank you eja, I have had many stales and now just watched the CPU spike. I'll try on a different system.

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
LightRider
Hero Member
*****
Offline Offline

Activity: 1106


I advocate the Zeitgeist Movement & Venus Project.


View Profile WWW

Ignore
January 26, 2012, 12:10:52 AM
 #8

Glad to see the pool grow, and looking forward to its integration with the standard client.

The latest Win32 release doesn't seem to be mentioned in the OP, BTW.

I'm selling a motherboard!
Bitcoin combines money, the wrongest thing in the world, with software, the easiest thing in the world to get wrong.
Visit www.thevenusproject.com and www.theZeitgeistMovement.com.
hoo
Member
**
Offline Offline

Activity: 89


View Profile WWW

Ignore
January 26, 2012, 02:01:05 AM
 #9

I don't quite understand something that I was asking about in the thread that was just closed.

Which is better to be using?

Nightly snapshots from here:
https://github.com/forrestv/p2pool/zipball/master

Or the latest executables scattered about?

----------

Also, what are the dependencies for the graphs?

I have all these:
http://bitcoin.stackexchange.com/questions/2640/p2pool-crashes-the-bitcoin-client/2643#2643
Quote
    Download latest current p2pool code and extract to "%programfiles%\p2pool" - https://github.com/forrestv/p2pool/zipball/master

    Download and install latest Python 2.7 (if you get 64bit, you'll need 64bit versions of the packages below) - http://www.python.org/download/

    Download and install python extension package twisted - http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

    Download and install python extension package zope.interface - http://www.lfd.uci.edu/~gohlke/pythonlibs/#zope.interface

    Download and install python extension package pil - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil

    Download and install python extension package pygame - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

but the graphs do not work, from what I have read it seems the problem is not having rrdtool, however I'm having trouble finding a current win32 version of rrdtool, it is also not in activestate.

Thanks


bitcoin, 2nd most popular currency used by criminals.
bitcoin, 2nd most popular currency used by criminals.
bitcoin, 2nd most popular currency used by criminals.
bitcoin, 2nd most popular currency used by criminals.
bitcoin, 2nd most popular currency used by criminals.
The probability that you too are a criminal, is very high.
LightRider
Hero Member
*****
Offline Offline

Activity: 1106


I advocate the Zeitgeist Movement & Venus Project.


View Profile WWW

Ignore
January 26, 2012, 03:25:28 AM
 #10

Getting "Found NONCE not accepted by Target" messages on latest version of Ufasoft's miner when connecting to latest win32 version of p2pool.

I'm selling a motherboard!
Bitcoin combines money, the wrongest thing in the world, with software, the easiest thing in the world to get wrong.
Visit www.thevenusproject.com and www.theZeitgeistMovement.com.
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW

Ignore
January 26, 2012, 05:04:26 AM
 #11

Watching

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
Frizz23
Hero Member
*****
Offline Offline

Activity: 602



View Profile

Ignore
January 26, 2012, 05:13:24 AM
 #12

In reply to "Holliday"s post (https://bitcointalk.org/index.php?topic=61131.msg712520#msg712520):  "What exactly is the problem again?"

The problem is, that - according to the logs - I (we) work on the same block since days. A look at my wallet also confirms that:
http://blockexplorer.com/address/17fLZeWn31xf9wruWa7EpjoCEJtEyvmANQ

I haven't received any BTC since a few days now.

That's why I said: "I think p2pool is not for me. To risky. Or buggy. Or both ..."

gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 742


View Profile

Ignore
January 26, 2012, 05:52:37 AM
 #13

Re: Frizz23 if p2pool was running the subsidy payments should have came in. How are you launching p2pool? Are you using -a <address> with the same address every restart?

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
thirdlight
Sr. Member
****
Offline Offline

Activity: 281



View Profile

Ignore
January 26, 2012, 06:56:04 AM
 #14

This page is really good for seeing "pool" stats. I've you think you've found a share, and your address is not in this list, then something's wrong.

Check the log (it's in "<folder-where-you-put-p2pool>/data/bitcoin/") to see what happened at start up.

Let us know what you find!
Costia
Newbie
*
Offline Offline

Activity: 28



View Profile

Ignore
January 26, 2012, 07:23:14 AM
 #15

installed from GIT:

http://127.0.0.1:9332/graphs/
Quote
Install python-rrdtool!

didnt find an easy way to install rrdtool on windows Sad

looking for a way to check my hash rate remotely

does the higher acceptance rate of the git version affects client in any way? if a lower difficulty solution is found does it still look for another one (because the lower difficulty solutions dont really count as shares)?

19qUEKyV5EBZ93W1aY1tr8LdRa1vrSYckt
niooron
Full Member
***
Offline Offline

Activity: 190


View Profile

Ignore
January 26, 2012, 03:11:47 PM
 #16

Where can I download the chain? I've been running p2pool for a day and it's at 12000/17000. It's so slow.

14dxwuQwkQiLbZjJFfciZ26xSGdRU5mKEp
forrestv
Sr. Member
****
Offline Offline

Activity: 467


View Profile

Ignore
January 26, 2012, 05:05:52 PM
 #17

Where can I download the chain? I've been running p2pool for a day and it's at 12000/17000. It's so slow.

It's already done. You don't need them to all be verified to mine... That's a bit confusing.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
ThePok
Full Member
***
Offline Offline

Activity: 132


View Profile

Ignore
January 26, 2012, 05:06:10 PM
 #18

We need a Message "You can connect the miner now!"

niooron, it doesnt need all 17k shares! As soon as its gets slow (1 share every 10 sec) you have all important shares! GUI and messages is realy crap!!!! FORREST CHANGE IT Grin
JWU42
Hero Member
*****
Offline Offline

Activity: 1008


View Profile

Ignore
January 26, 2012, 10:09:17 PM
 #19


I'm personally really happy about the new built in per-worker graphs:

[graphs removed --gmaxwell]


So you need to have several bitcoind's running with a different user pass in each?

GPG PubKey | THREEMAOTC | HeatWare | 1JWU42QLGFESoQCC4iPzUDTRiC9nx5bi95
JWU42
Hero Member
*****
Offline Offline

Activity: 1008


View Profile

Ignore
January 26, 2012, 10:22:01 PM
 #20

To get the per miner graphs...

GPG PubKey | THREEMAOTC | HeatWare | 1JWU42QLGFESoQCC4iPzUDTRiC9nx5bi95
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 415
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!