P2Pool v2 pushes mining toward direct payouts
- P2Pool v2 is testing direct miner payouts, but limited payout slots could still shut smaller miners out.
- Its Testnet 5 network had reached 12 nodes as developers worked on verifying miners’ chosen Bitcoin chain.
Bitcoin mining pool P2Pool v2 is being tested as a way for miners to share work without handing a pool operator custody of their earnings. Rather than rely on an operator to distribute funds, the design records miners’ shares on a replicated blockchain and pays them directly from Bitcoin’s Coinbase transaction, the transaction that issues a block’s rewards.
The design revisits a problem that constrained the original P2Pool. Shares arrived about every 30 seconds, and Coinbase payouts once covered about 550 miners at most. But some mining firmware could handle only 16 payouts, while other firmware allowed 30. Those limits can leave smaller miners without a place in a block’s payout transaction.
Jungli, a P2Pool v2 developer, said the system had mined on Testnet 4 since April and used Testnet 5 to demonstrate permissionless mining. The Testnet 5 network had reached 12 nodes. Jungli said getting more people to run nodes mattered more than adding raw hash rate to a public test network.
The payout limits remain unresolved. One suggested workaround would let large miners buy smaller miners’ shares at a discount, paying them sooner in exchange for taking on the wait and risk of a block reward. But Jungli warned that a large miner could fill every available payout slot and leave smaller miners out, a “rich list” attack. A covenant-based design could let one Coinbase output commit to payments for many miners, but the team has not settled on a solution.
Jungli argued that direct payouts matter because custodial pools can be pressured to withhold miners’ funds. He pointed to balances Ocean held for smaller miners and a recent hash-rate redirection incident that led Ocean to explain its payout policy. P2Pool v2 is also building an overlay to relay Bitcoin headers, which Jungli said could help confirm that miners are working on the right chain rather than subsidizing mining on a hostile one.
Source Intelligence
- Deep dive into what was said in the episodes
Bitcoin Optech: Newsletter #432 Recap • Nov 24
- Jungli says P2Pool v2 revives decentralized mining by putting miner shares on a replicated blockchain and paying miners directly from Bitcoin’s Coinbase transaction, without a pool operator holding their funds.
- Jungli says original P2Pool shares arrived about every 30 seconds, limiting capacity as miners joined. At its peak, Coinbase payouts covered about 550 miners, but some firmware limits later reduced practical capacity to 16 or 30 payouts.
- Jungli says P2Pool v2 has mined on Testnet 4 since April, then used Testnet 5 to demonstrate permissionless mining. The public test network had reached 12 nodes, and Jungli prioritizes node participation over raw hashrate.
- Jungli argues that decentralized payouts matter because custodial pools can be pressured to withhold miners’ funds. He points to Ocean’s held balances for smaller miners and a recent hash-rate redirection incident that forced Ocean to explain its payout policy.
- Jungli says P2Pool v2 needs a way to detect miners choosing poor or non-profitable transactions. The team is considering fee comparisons between received shares and local templates, but has not built validation rules yet.
- Jungli supports stale-tip propagation because P2Pool needs to verify which Bitcoin chain miners are working on and avoid subsidizing hostile-chain mining. He says P2Pool is building an overlay that relays Bitcoin headers for that verification.
Also discussed on this episode: (26)
Mining (5)
- Jungli describes a proposed share market where large miners buy smaller miners’ shares at a discount, giving small miners earlier payouts. A rich-list attack could let one large miner occupy Coinbase payout slots without buying those shares.
- Jungli says miners could also grief payout trees by withholding signatures needed to settle smaller miners’ payouts. Stephen Roos argues that covenants could enable one Coinbase output to commit to an ARK tree paying every miner.
- Jungli says simulations found little benefit for small miners from variable Coinbase sizes, while a large miner could game the system by claiming different capacity. LearnBitcoin.com’s analysis of 2,500 historical P2Pool Coinbase transactions helped estimate payout capacity.
- Mike says BIP-332 would let nodes relay stale block tips so the network can measure stale rates. Antoine Poinsault favors headers by default; AJ Towns estimates full-block relay raises a 20% pool’s annual revenue from 16.1 to 16.36 BTC.
- Stratum V2’s reference implementation 0.9.0 adds Bitcoin Core 32.1 support and block submission over Core’s IPC interface. Marathon mined its first block with Stratum V2, and Foundry began testing it on its pool.
Lightning (14)
- Eclair 0.14.0 accepted a Bolt 12 start-batch message with batch size zero, then kept accepting commitment messages until memory exhaustion crashed the node. The bug required no channel and was fixed in 0.14.1.
- Gustavo warns that a Lightning denial-of-service attack can create indirect fund risk by keeping a node offline during penalty or HTLC-expiry deadlines. Eclair 0.14.1 fixed three denial-of-service bugs in total.
- Lightning Labs’ Wavelength is an ARK-like payment toolkit that uses Lightning invoices while hiding ARK settlement from developers. It targets agents and other developers who want payments without running a node or managing channels.
- Wavelength limits accounts to 300,000 sats and BTXOs to 50,000 sats, and charges 0.25% on Lightning payments. Lightning Labs has signaled stablecoin support, while the repository already references Taproot Assets in ARK VTXO trees.
- Core Lightning 26.12 adds experimental support for simple-close and makes Xpay its preferred invoice-payment RPC. The older pay command is scheduled for removal in 27.03; the release also adds clearer local-forward failure messages.
- Core Lightning adds lightning-hsm2-recover-htlc for rebuilding HTLC claim transactions after local channel-state loss. Recovery still requires the HSM secret, HTLC details, and the peer’s per-commitment point, followed by manual transaction review and broadcast.
- LDK 0.2.8 rejects a premature revoke-and-ack message that could advance its commitment counter without a completed signature exchange. Previously, the mismatch could leave incoming HTLCs unclaimable if a peer published the resulting commitment.
- LDK 0.2.8 also rejects conflicting channel IDs at acceptance, preventing a peer from reusing an old or predicted ID to confuse channel state and disrupt HTLC claims.
- An LDK peer could register a bogus channel using a watched outpoint with a different script, overwriting Electrum monitoring and causing the node to miss a real transaction. LDK now retains every distinct script registered for an outpoint.
- LDK fixed two fee-budget errors: omitted limits for asynchronous payments no longer disable the default cap, and retries that raise a payment to meet an HTLC minimum no longer add the fee to the payment amount.
- LND now marks multipart invoices pending after releasing the preimage and settles them only after every HTLC has a final outcome. Applications must credit only successful finalized HTLCs because a canceled invoice can still include collected, unreimbursed parts.
- LND now rechecks every accepted part of a multipart or AMP payment against the current block height when completing the set. If an earlier part is too close to expiry, LND fails the set and leaves the invoice open for another attempt.
- LND 0.21.8 and 0.20.8 make temporary or unclassified sweep errors retryable and isolate bad inputs in batched sweeps. LND tests input combinations with the backend’s mempool-accept check to identify which output prevents broadcast.
- LND fixed two reconnect bugs that could strand forwarded HTLCs: replay indexing could associate an HTLC with the wrong metadata, and an incomplete batch record could make retries look like duplicates. The fix preserves original indexes and clears failed handoff records.
Custody (2)
- Liana 16.0 adds encrypted descriptor backups in BIP-138 format and makes Taproot the default for new wallets, covering recovery information that a seed alone may not restore for multisig or timelock setups.
- Coldcard firmware adds Codex32 secret import and generation, plus Shamir backup splitting into two to nine shares. It also adds per-input height and time locks for PSBT transactions.
Privacy (3)
- Bull Bitcoin now defaults exchange deposits and withdrawals to PayJoin through Bull Wallet, which adds the receiver’s input to weaken common-input ownership heuristics. Failed PayJoin attempts fall back to ordinary transactions; wallet version 6.14 adds experimental silent-payment support.
- Breeze SDK 0.28.0 adds silent-payment sending. Electrum’s SP ScanD plugin adds watch-only scanning, using Bitcoin Core, a Blindbit server, or Blindbit with compact block filters without asking servers about specific addresses or transactions.
- Bitcoin Core could reveal a distinctive listening port when a malicious Tor or I2P peer falsely claimed to see the node at a routable IP. The fix ignores those reported addresses instead of echoing the port.
Payments (1)
- OpenSwap 0.2.3 adds an Electrum backend, third-party payout addresses, and on-chain-to-Lightning swaps through LDK Server. Jungli says P2Pool may use OpenSwap to exchange miner shares for Lightning payments.
Protocol (1)
- The BIPs repository marked Testnet 5 deployed and replaced placeholder genesis parameters with those of its mined genesis block, formalizing the network’s launch configuration.
SNL #251: The state of bitcoin payments • Nov 20
- At an Austin BitDevs meetup, Bob McElrath, who leads Braidpool, explained how P2Pool v2 works. Keon said the release prompted discussion and brought useful perspective from a longtime Bitcoin developer.
Also discussed on this episode: (13)
Education (1)
- Billy the Kid’s read-along covers books four through six of The Odyssey, with summaries and questions that draw readers into the discussion. Keon described the project as a useful way to approach a difficult epic poem.
Immigration (1)
- Jean Raspail’s 1973 novel The Camp of the Saints imagines mass immigration disrupting European culture. Keon said Simple Stacker reads it as a warning about immigration without integration, while noting that critics have called the book racist and xenophobic.
Media (1)
- Club Poet’s response to Richard Linklater’s Slacker connects the film’s Austin bohemians with a creative scene that feels less visible today. Carl said the film recalls communities built around art and music, while Keon described Austin as faster-paced than other cities.
Banking (1)
- A Chase service failure caused delays for customers and people transacting with them; the article discussed by Keon said other named banks and Zelle were operating normally. Keon doubted brief outages would push people toward Bitcoin, while Carl said some users might keep $100 or $200 in a Lightning wallet.
AI Infrastructure (1)
- Keon attributed the cluster of service disruptions to software practices lagging behind code generation, including under-tested fixes reviewed with language models. Carl speculated about a deliberate, prolonged shutdown; Keon instead warned that cyberattacks on critical infrastructure could escalate into wider conflict.
Big Tech (1)
- Carl described a post attributed to Jensen Huang that apologized for problems affecting his family and the company, and said he wanted to earn their support. Keon called the apology well phrased and questioned whether alleged infidelity justified removing a public-company leader.
Agents (1)
- OpenAI’s ChatGPT wallet lets agents initiate purchases through linked payment cards, with users reviewing and approving transactions. Keon compared the setup to Apple Pay; Carl doubted OpenAI could turn it into a durable product and predicted it could be dropped within 18 months.
Payments (2)
- Carl said X402 has more transaction volume and velocity than PayPal had in its first year, but Keon disputed the comparison, citing PayPal’s early incentives. Keon said much of the X402 activity he had seen was trading rather than payments for goods and services.
- Block’s Bitcoin payments report put the median Square transaction at $12 and said 10% of spending was retail. Keon questioned how the report identified non-Cash App wallets, since Lightning gives senders privacy, and said Block did not explain its method.
Privacy (1)
- A YouTuber built a camera that identifies police cars and captures license plates, then received a police visit after a viewer reported the project. The officers raised concerns about people using the footage to identify where police live, while the creator pointed out that police surveillance works in the other direction too.
Stablecoins (1)
- Keon said Cantor Fitzgerald holds most of Tether’s assets, including U.S. Treasuries, and gives the stablecoin issuer access to established financial infrastructure. He described Howard Lutnick’s government move and his children’s purchase of Cantor using a Tether loan as tightly interwoven interests.
Markets (1)
- Vake argued that higher hotel prices during the FAA grounding allocated scarce rooms to travelers willing to pay, rather than constituting price gouging. Carl said the argument overlooks how civil unrest could disrupt normal supply-and-demand conditions.
Open Source (1)
- Carl described a new Flipper handheld with expanded capabilities, including desktop mode and an eSIM option that can provide a portable hotspot. He saw it as a useful tool for IT and penetration-testing work, especially if users build more open-source tools for it.

