Skip to content

V36 share format with merged mining (LTC+DOGE) — community fork #78

@frstrtr

Description

@frstrtr

Hi everyone,

We've been building on jtoomim/p2pool to add merged mining (AuxPoW) support for Litecoin + Dogecoin on the p2pool share chain. The changes required extending the share format beyond V35, so this is a separate fork rather than a PR — the divergence is too large for a clean merge.

Repository

https://github.com/frstrtr/p2pool-merged-v36

First merged-mined DOGE block

Proof of concept achieved: P2Pool V36 successfully mined its first Dogecoin block via merged mining on 2026-03-23:

DOGE block #6135703 — decentralized LTC+DOGE merged mining with automatic PPLNS payout distribution across all pool participants.

This confirms the full merged mining pipeline works end-to-end: AuxPoW block construction, merged coinbase with PPLNS outputs, block submission to Dogecoin network, and reward distribution — all without any centralized pool operator.

What V36 adds

Protocol:

  • V36 share format with pubkey_type field — native P2SH and bech32 address support in shares
  • AuxPoW commitment in coinbase — merged mining of Dogecoin on the same share chain
  • Merged chain rewards distributed through the same PPLNS consensus as parent chain
  • Merged payout hash commitment in shares for consensus-level verification
  • Backward-compatible transition from V35 via version signaling (95% activation threshold)

Infrastructure:

  • MM-Adapter bridge — translates between P2Pool and standard Dogecoin Core RPC (createauxblock/submitauxblock), no custom daemon patches needed
  • Multiaddress coinbase — miners specify both LTC and DOGE payout addresses via stratum
  • Automatic cross-chain address conversion (LTC P2SH → DOGE P2SH, bech32 → P2PKH)
  • Reverse conversion: DOGE address used as parent is auto-detected and converted to LTC
  • Share redistribution modes for unnamed miners (--redistribute boost helps tiny miners)

Tested platforms

Platform Status
Ubuntu/Debian (bare metal) ✅ Tested
Docker (Linux) ✅ Tested
Windows 10/11 (WSL2) ✅ Tested
macOS (Intel x86_64) ✅ Tested

Current status

Running on LTC mainnet with DOGE merged mining. Multiple nodes operational, V35→V36 transition signaling active.

Latest release: v0.14.2-hotfix (2026-03-23)

v0.14.2 highlights:

  • Fixed DOGE payout detection (PyPy isalnum() breaking raw script matching)
  • Fixed stratum stats singleton losing worker references
  • Merged block explorer links now use correct block hash
  • V35→V36 transition UI: auto-converted address badges, pending explicit address display
  • Security: stratum DDoS detection, per-IP connection limits

v0.14 highlights:

  • PPLNS consensus verification for merged mining payouts
  • Merged payout hash commitment in share chain
  • Docker deployment (Dockerfile + docker-compose.yml)
  • Windows 10/11 and macOS (Intel) deployment guides

Links

Feedback and questions welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions