Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

As I was checking this SE, it doesn't appear this important question has been asked:

What is the P2Pool? How does differ from the traditional approach and what does it offer its users?

share|improve this question

1 Answer 1

P2Pool is a distributed bitcoin mining pool. First, consider checking out the P2Pool Wiki for the latest information.

I think it would help to briefly explain it in terms of differences between p2pool, traditional pools, and solo mining.

Solo Mining

When you solo mine bitcoins, you have control of all aspects of mining. You decide which transactions get included in your block and you decide where the block reward goes (usually you decide to send it to one of your own addresses). However, unless you have a very large mining operation, you'll be highly affected by variance. For example:

At a the current difficulty (1733207), the average time for a 5 GH/s miner to find a block is just over 2 weeks. And it is not uncommon for you to take 3-4x longer than the average occasionally when you are unlucky. As a result, you can go long stretches without earning anything.

Traditional Pooled Mining

To solve the problem of high variance, the mining pools were created. In a traditional mining pool, many people all agree to combine their mining efforts and split the rewards according to their contributions. A sufficiently large pool may then have enough combined mining power that their average time to find a block may only be a couple hours instead of a couple weeks. As each block is found the block reward is distributed between the pool's miners. Each miner then gets smaller payments more regularly instead of one large 50 BTC payment every few weeks.

In a traditional pool, the pool operator sets up a website that miners connect to to receive mining work at a much lower difficulty so that each miner will find a valid solution every few seconds. These easy solutions, or "shares" are counted and rewards are distributed based on the proportion of shares that each miner found using one of several reward schemes. In the traditional pool, the pool operator is the one who decides what transactions go into each block and how the rewards are distributed. Typically, the pool sends all rewards to itself and then pays miners out of the pool's funds periodically.

P2Pool

P2Pool is sort of a cross between these two worlds. Like solo mining, p2pool miners are creating their own blocks and choosing which transactions go into blocks. Like pooled mining, rewards are shared between everyone who is part of the pool.

With p2pool, each miner runs a p2pool node and these nodes form a peer to peer network amongst themselves similar to how bitcoin, itself, does. Participants then connect their mining software to their local p2pool node and is given low difficulty work just as with a traditional pool. As each share is found, it is communicated to other miners on the p2pool p2p network so that all nodes are aware of who is contributing to the collective mining effort and in what capacity.

Each share also includes the reward transaction that will be used in the event that a share ends up being a valid block. That reward transaction includes directly payments to all of the recent contributors to the p2pool network. So as blocks are found, contributors directly receive their payment just as they would have with solo mining.

To ensure that everyone is playing fair, shares are assembled into a share chain in the same way that bitcoin blocks are assembled into a block chain. Each share that someone finds builds on all of the previous shares. All miners that are following the same set of established rules end up creating shares that other miners are willing to include in the share chain. Miners that don't follow the rules end up creating shares that get excluded from the main share chain and so they don't get paid when blocks are found by the other miners. In order to make it practical for nodes to be constantly passing shares around the p2p network, the share difficulty is tuned so that shares are only found 1 every 10 seconds across the entire p2pool network. The result is higher variance than at a traditional pool, but still much less variance than with solo mining.

Summary

In summary, the benefits over a traditional pool include...

  1. Miners get paid directly and so do not have to trust a pool operator to eventually pay them.
  2. Miners get to choose their own transactions.
  3. There is no single person that has centralized control of the pool that can abuse the power of the combined mining capacity of the pool.

The drawbacks are higher variance than at traditional pools (particularly for small miners), and extra complexity in initial setup because miners have to install and configure bitcoin and the p2pool software in addition to their mining software.

share|improve this answer
1  
It should be noted that BitPenny was the original pioneer in decentralized mining, and Eligius now also supports it. Unlike P2Pool, these pools can still offer lower variance, and privacy protecting the miner from attacks (DDoS, legal, etc). –  Luke-Jr May 14 '12 at 2:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.