C++ reimplementation of forrestv/p2pool targeting the V36 share format, with per-coin binaries for six parent chains and their merged-mining children. Two of them are in production use:
- Litecoin, with DOGE merged mining in production on the V36 share chain (embedded DOGE node). More Scrypt AuxPoW chains (PEP, LKY, SHIC, BELLS, JKC) can be added through external daemons. They are not production-tested, and segwit aux chains (BELLS, JKC) are not supported yet.
- Dash, with a daemonless embedded node in production. It needs no dashd and is ready for Dash Core 24 (v24). It covers compact blocks (BIP 152), superblock governance and the full UTXO set from a pinned snapshot.
The other parent chains are Bitcoin (+ Namecoin), DigiByte (Scrypt), Bitcoin Cash, and BIP-110 (the Bitcoin Knots BLAKE2b minority hard fork; embedded daemonless, experimental). See Supported chains for the full matrix and status.
Bitcoin wiki: https://en.bitcoin.it/wiki/P2Pool
Original forum thread: https://bitcointalk.org/index.php?topic=18313
- v0.2.12.16 — BTC + BIP110: header requests carry a full block locator, and header sync recovers when the peer stops relaying blocks (BTC: without
--bitcoind). Dashboard: the BTC coin-peer card shows the connected peer and the other public candidates; a found block with no known miner (LTC, DOGE, BTC, Dash) shows under the donation address; a multi-pool deployment can list its stratum endpoints by region. - v0.2.12.15 — LTC/DOGE miner page: the merged-mining panel lists the miner's merged blocks, and LTC blocks recorded before v0.2.12.7 count for their miner. BTC: found blocks are kept across restarts, and
--import-found-blocksas on LTC. DASH: previous-cycle InstantSend locks keep verifying through a reorg. - v0.2.12.14 — All coins: the read-only web API can also answer on the stratum port (
--stratum-http, off by default), and the web port answersHEAD. Dashboard: local hashrate counts only sessions that are currently submitting. DASH: the superblock payment total is checked against the budget at every step. - v0.2.12.13 — DASH: the masternode list resumes after a header-store reset (the first start on this version is a cold start); the mainnet header chain follows the built-in anchor; share-chain block solutions below the network's minimum time are not relayed. LTC/DOGE: imported found blocks take the source node's measured effort.
- v0.2.12.12.2 — LTC + DOGE: the embedded header chains accept the genesis header only into a header store that has no tip yet; check the LTC and DOGE header stores once after upgrading (steps in the release notes). Dashboard: Discovered Merged Blocks links the parent hash to the parent-chain explorer only when its parent height is known. Recommended for every LTC/DOGE node.
- v0.2.12.12.1 — DASH: a header-chain robustness fix. Recommended for every Dash node.
- v0.2.12.12 — DASH: InstantSend locks are checked against recently rotated quorums, and templates follow InstantSend locks; lower CPU with provider transactions in the template; share-chain block solutions are relayed at the network's difficulty only; a won block is not held back when the local Dash Core does not answer.
- v0.2.12.11 — DASH: lower CPU and no io-loop stalls when serving masternode special transactions; a found block recorded without a height no longer stays "pending"; chainz links on the dashboard.
- v0.2.12.10 — Stratum (all coins): no difficulty runaway after a restart, and the
d=N/+Nminer password options. LTC: dead stratum connections no longer fill the miner cap;--import-found-blocksrestores the found-block history from another node. DASH:--listen HOST:PORTbinds HOST; shorter tracker lock holds. - v0.2.12.9 — All coins: dashboard luck is based on effort, and pool luck over a period is blocks found ÷ blocks expected with a 95% interval. LTC: Best Share shows your own miners' best hash. DASH: a new node keeps working through the Dash Core v24 activation;
--connectis connect-only;c2pool-dashnow requires dashbls. - v0.2.12.8 — All coins: a fresh node no longer aborts while it looks up DNS seeds; source-archive builds show their real version;
--versionon LTC and BTC. Dashboard: an interactive PPLNS view. - v0.2.12.7 — LTC:
--feepays the node owner the configured fee (v0.2.12–v0.2.12.6 paid about 1/12 of it), and a smaller miner's shares count at their full weight next to a bigger miner. DASH: on a node with several miners, each submission is judged by its own job's share target (a smaller miner could keep as little as 1/30 of its shares). LTC dashboard: one found block shows as the same row on every node, and merged blocks appear only under Merged Mining Blocks. Linux packages run withoutstart.sh. - v0.2.12.6 — LTC + DASH: a share that solves a block wins its head race against an equal-work sibling, as in p2pool. Dashboard fixes.
- v0.2.12.5 — DASH: superblock trigger votes are re-synced right before the superblock, for the Dash Core 24.0.1 voting change. Upgrade before superblock 2,575,480.
- v0.2.12.4 — LTC: a restarted node reconnects to the live share chain; share-store fixes for all coins; the dashboard shows whether each merged (DOGE) payout address was given by the miner or derived from the LTC address; universal macOS packages again (Apple Silicon + Intel).
- v0.2.12.3 — LTC: a node serves every share it holds (no gaps for peers after a dropped connection); the node fee is taken at exactly the configured rate. DASH: compact-block (BIP 152) receive, superblock governance sync, block bodies checked against the header including the v24 asset-unlock root. macOS packages in this release are Apple Silicon only; universal again from the next release.
- v0.2.12.2 — LTC: the built-in bootstrap list holds V36 share-chain nodes only.
- v0.2.12.1 — LTC + merged mining: share version 3601, active since 2026-11-13 00:00:00 UTC. Nodes older than v0.2.12.1 and Python p2pool are no longer on the LTC share chain. Several aux chains at once, job-time payouts. (v0.2.12 had an earlier date, 2026-11-11 12:00 UTC: do not run it.)
- v0.2.11.1 — DASH: Dash Core 24 hard fork support in the daemon-less node (every v24 transaction type in templates); LTC fix for a coinbase that could burn the block reward under load.
- The Python p2pool implementations (p2pool-dash, p2pool-merged-v36) are no longer maintained. All updates, including security fixes and Dash Core 24 support, ship only in c2pool.
Security model: no RPC and no local credentials. Older P2Pool forks need RPC credentials to a local Dash Core daemon. c2pool speaks the Dash P2P wire protocol itself, so it needs no RPC credentials, no local wallet access and no administrative access to a daemon.
c2pool-dash builds valid Dash mainnet blocks from embedded coin-state. The
deterministic masternode list, LLMQ quorums, ChainLocks and the DIP-4 coinbase
are reconstructed inside c2pool. No Dash Core node is required on the serve path.
Dash Core 24 (hard fork) is supported from v0.2.11.1: the v24 rules are built
into the node, so a daemon-less pool has no dashd to upgrade. v24 signalling
started at block 2,576,448 (2026-11-22): the earliest lock-in is block 2,580,480
and the earliest activation block 2,584,512 (around 2026-12-07). c2pool is
compatible with Dash Core 24.0.2 peers.
Blocks built this way have been accepted on Dash mainnet, including the pool
development-fee split. A bare c2pool-dash --run is daemonless: with no
--coin-rpc given, every embedded serving lever defaults ON
(src/c2pool/main_dash.cpp banner, "ALL embedded serving levers default ON
when NO dashd arm is given"; resolver in
src/impl/dash/coin/good_citizen_defaults.hpp). The public node
dash.voidbind.com runs this posture with no dashd on the host. A node started
with --coin-rpc H:P keeps dashd as the reward-safe fallback arm — the
operator's private deployment still runs dashd-attached — so both postures are
supported by the same binary. The remaining work is retiring the --coin-rpc
fallback entirely. See
Per-binary launch reference for the flags.
DASH v36 network (code merged 2026-10-03, no public seed nodes yet).
c2pool-dash --net dash-v36 joins a separate DASH sharechain that uses the V36
share format. It has its own identity (network id ac2785363c0180b8, protocol
3601), so it never mixes with the v16 p2pool-dash sharechain, and its own P2P
port 8998. The v16 network keeps 8999 and is unchanged. What the v36 network
adds:
- v36 shares commit the template's transactions, and the node that finds a block assembles the full block (PR #1856);
- cheap pre-checks before X11, plus size and count caps on incoming shares (PR #1850);
- a graded misbehaviour score and ban for sharechain peers (PR #1858);
- built-in seed support on port 8998 (PR #1859).
The public v36 network has no deployed seed nodes yet; until it does, start
with
--addnodeto a known v36 peer.
Daemonless-Dash finalization has not been funded by Dash on-chain governance yet.
- c2pool-daemonless-dash (current, submitted 2026-11-23): 50 DASH at each of six
superblocks, December 2026 to May 2027 (window 2026-11-22 to 2027-06-03), to
XdgF55wEHBRWwbuBniNYH4GvvaoYMgL84u. Each superblock is decided separately.
DashCentral: https://www.dashcentral.org/p/c2pool-daemonless-dash;
governance object fef748433af0d10120a4033f1e8edf2146b95d19d97fa63d47a71f556349342d;
collateral 41b080a7d6ae9ee1c37a7d31ccc3d99a984b663c630f0afcc3a9079b22da415e (zero fee,
242 inputs), mined in block 2577188 by this pool through runtime transaction
injection (below). Check the tally on any Dash Core node with
dash-cli gobject get fef748433af0d10120a4033f1e8edf2146b95d19d97fa63d47a71f556349342d. - c2pool-daemonless-delivered (252 DASH, one payment at superblock 2575480, 2026-11-20): at the voting cutoff it had 190 net yes votes (206 yes, 16 no), short of the threshold of 10 percent of the masternode voting weight. It could not have been paid there in any case: of that superblock's 6828.26 DASH budget, 6710.00 DASH went to 19 approved payments, leaving 118.26 DASH. Superblock 2575480 did not pay it, and its window ends before the next superblock. DashCentral: https://www.dashcentral.org/p/c2pool-daemonless-delivered; governance object c7b462b7c8d81df10ce34ebd4436afd715f288c25a7c949835f889015248b247; collateral 639a53cfa9f19f16414a9dd679ebfdc930633e18eedd8cd5f06ff4a90925b705, mined in block 2565421 by this pool through runtime transaction injection (below).
- c2pool-daemonless-finalize (fa758340f1bd2391d17bb43667f76c5d9070d737b68e018e42ed75b09c6ba631, 2 x 125.5 DASH) reached the threshold only after the last superblock inside its window (2558864) had passed. Its window ended on 2026-11-04, so it was never paid.
Votes do not carry over to a new proposal hash.
A running c2pool-dash node can carry an already-signed transaction in its own block template, with no restart. This includes zero-fee transactions that ordinary nodes do not relay. The node never holds keys; transactions are signed on an offline machine.
- Control plane. Start the node once with
--control-plane-token-file FILE(mode 0600, owned by the node user, 32 to 128 printable characters). Without it/api/config/applyanswers503 {"armed":false}and/api/tx-inject/submitrefuses with 403. - Arm at runtime.
POST /api/config/applywithembedded.tx_inject=true. This is a money-path key, so it needs the control token plus a two-phase nonce bound to the exact change.--embedded-tx-injectarms it at start-up instead and survives restarts. - Submit.
POST /api/tx-inject/submitwith{"control_token": ..., "raw_tx": ...}. Status:GET /api/tx-inject-status. All three endpoints answer only direct loopback requests; forwarded requests are refused. A remote node is reached through an SSH port-forward. - What to expect. A transaction without an InstantSend lock waits 10 minutes before it is selected (the same rule as Dash Core), then rides every template until the pool finds a block. A coinbase input must be mature in the block being built.
- Examples on mainnet. Block 2565253 carries a zero-fee consolidation of 189 outputs (539aa4b7aeceeb17c302cd51f402f3371f527ef73178466b5e3c2f80b9b40a28). Block 2565421 carries the collateral of c2pool-daemonless-delivered. Block 2577188 carries the collateral of c2pool-daemonless-dash: zero fee, 242 inputs, spending every output of the payment address that was mature when it was built, 1-duff outputs included.
Tools in this repository, under ui/c2wallet-qt/ (see its README):
- c2wallet-qt-signer, the air-gapped signer. It is built with no network code, and a link guard checks this. It builds and signs zero-fee consolidations and governance collaterals (PageDashInject) and exports the signed hex. It also has a Sign / Verify Message page at Dash Core parity (#2127).
- The inject scheduler in the key-free companion. It queues signed transactions and
submits them when their inputs mature, at a height or time, or after a parent
transaction is ChainLocked. The core (#2120) and the headless daemon
c2wallet-qt-schedd(#2123) are merged.
c2pool-bip110 follows the BLAKE2b hard-fork chain over coin P2P with no bitcoind
on the serve path. It is an embedded SPV header-follower: below height 961640 it
validates SHA256d, and at/after the fork it validates the byte-exact BLAKE2b
proof-of-work of the 164-byte v2 header — a SHA256d block past the fork is
rejected, so the node tracks the BLAKE2b chain rather than the higher-work
canonical Bitcoin chain. A known-answer test reproduces the canonical hash of
live fork block 961640 (a block the fork network mined, not c2pool). This
fork-following node is on master and is running live: bip110.voidbind.com is
synced to the BLAKE2b fork tip.
The mining and reward-safe daemonless mempool-serving stack — Stratum-v1 work
source, block assembler, and fail-closed reward-safety cross-checks
(coinbasevalue == subsidy + fees, committed tx-merkle/txcount, refuse-to-serve
on mismatch, submit-side merkle re-verify), plus the 0.1% author-donation split —
is on master (merged via #1439). The live node at bip110.voidbind.com serves
the fork mempool and accepts Stratum miners at stratum+tcp://bip110.voidbind.com:9336,
behind a full coin-generic dashboard.
The value of this lane is strategic, not revenue: BIP-110 is a minority fork whose coin is effectively unlisted (block reward ≈ 0 in fiat), and mining a demo block requires renting BLAKE2b (Sia-algorithm) hashrate. The goal is to be a working decentralized pool on a fresh fork — a P2Pool-style alternative to centralized fork-mining gateways — not an earnings lane. This lane imports zero Dash consensus machinery; it is Bitcoin-native.
bip110.voidbind.com is part of the voidbind daemonless-standalone fleet —
public pools that run with no coin daemon on the serve path:
btc.voidbind.com, bch.voidbind.com, dgb.voidbind.com, dash.voidbind.com,
and bip110.voidbind.com.
Mining (experimental, live): point a BLAKE2b (Sia-algorithm) miner at stratum+tcp://bip110.voidbind.com:9336 with username <BIP-110-address>.<worker> and any password. Daemonless standalone node on the BLAKE2b fork; block reward is effectively zero today (coin unlisted) — a decentralized-pool proof, not a revenue venue.
c2pool builds one binary per parent chain (c2pool-<coin>). Several parents also merge-mine AuxPoW child chains in the same coinbase.
| Parent chain | Algorithm | Merged-mining children | Status |
|---|---|---|---|
| Litecoin (LTC) | Scrypt | DOGE (embedded); PEP, LKY, SHIC via external daemons (untested); BELLS, JKC not yet (segwit) | Production (V36; live LTC+DOGE blocks) — c2pool-ltc |
| Dash (DASH) | X11 | — | Production, daemonless (c2pool-dash --run; dash.voidbind.com): v24-ready, compact blocks, superblock governance, full UTXO set; dashd-attached posture via --coin-rpc still supported |
| Bitcoin (BTC) | SHA256d | Namecoin (NMC) | Live, daemonless (c2pool-btc --coin-p2p-discover; btc.voidbind.com); NMC embedded merged mining in development |
| DigiByte (DGB) | Scrypt¹ | DOGE (embedded, -DAUX_DOGE) |
Live, daemonless (c2pool-dgb --run --coin-p2p-discover; dgb.voidbind.com) — mainnet only, no testnet mode |
| Bitcoin Cash (BCH) | SHA256d | — | Live, daemonless (c2pool-bch --pool; bch.voidbind.com) |
| BIP-110 (Knots BLAKE2b fork) | BLAKE2b² (SHA256d until height 961640) | — | Experimental (new fork; daemonless embedded; live on bip110.voidbind.com) — c2pool-bip110 --run |
| Monero (XMR) | RandomX | none | Experimental (v37 lane, Path B payouts; c2pool-v37-xmr, can run daemonless; not built by the release workflow): regtest, stagenet and testnet run a pool; mainnet runs only --follow-only and needs --i-understand-mainnet even for that; see docs/xmr-lane |
"Live" means a public voidbind node runs that per-coin binary with no coin daemon on the serve path. It is not a production-maturity claim: only the LTC and Dash lines are in production use (LTC with the V35→V36 crossing-soak record, Dash as a daemonless node finding mainnet blocks). Each binary's real flag surface is in Per-binary launch reference.
¹ DigiByte is a MultiAlgo chain; c2pool runs its Scrypt algorithm as a standalone parent — it is not an AuxPoW child of Litecoin.
² BIP-110 is a minority Bitcoin hard fork (Bitcoin Knots): its proof-of-work switches SHA256d→BLAKE2b at block height 961640 with a one-off difficulty reset, and it uses a reduced block weight of 800000 WU (RDTS). It shares Bitcoin mainnet's network magic and port until the fork; fork peers advertise NODE_BLAKE2B (service bit 28).
c2pool is a decentralized mining-pool codebase and the home of the v37 research line (Roundabout / Work Receipts / MRR). This section states, plainly, what does and does not yet exist, so the work can be judged on what it actually is.
v37 is design- and prototype-stage. Do not run it in production.
- A formally specified settlement/lanes core: TLA⁺ specs, model-checked with
TLC (green over the bounded configurations checked in). This is a proof over a
model, not evidence at scale.
proto/tla/Settlement.tlarevision 2 records the owed-sign decisions (a per-key floor, a non-negative aggregate, no clawback; PR #1846). - A v37 engine consumer tree implemented in C++ under
src/c2pool/v37/— the Work Receipts / Roundabout settlement pipeline as a reference/prototype engine behind CI, not a production node. Merged behind CI: the W1 O1 executor and W2 receipt ingestion (admission-first, carrier-position credit — PR #1483), the W4 prerequisites (identity view + read-at-version ring — PR #1485), W4 per-lane settlement (OWED-ledger fold + O2 cut + O5.5 — PR #1486), W5 coinbase assembly (oldest-owed-first K_fair + h_min carry + §13 root — PR #1487), and W3 carrier relay over the v36 p2p (wire extension + R_MAX — PR #1484), and W6 persistence / restart-recovery (PR #1506). - An isolated "Family B: XMR lane" (Monero / RandomX) under
src/impl/xmr/, which does not touch the v37 consensus digest. Merged: the lane foundation (scaffold + vendored RandomX + X0 — PR #1500), buildable KAT-tested primitives (RandomX CI-gated — PR #1502), the monerod adapter + descriptor-finalize + receipt envelope (PR #1503), and stratum + carrier wire (PR #1507). Goldens, real-RandomX verify, and the end-to-end KAT are merged (PR #1512). Since the Path B flag day (PR #2010) the lane has one payout model, Path B: Work Receipt Settlement (WRS), also called pay per receipt (PPR). There is no owed ledger, no carried balance and no payout queue; each pool block's coinbase pays that block's full reward to the Work Receipts in its window. The node isc2pool-v37-xmr(src/c2pool/v37/xmr/, PRs #1992 / #2010), and several nodes can run one pool together. The lane also has a node package with a run-a-node guide (PR #1817, docs/xmr-lane/RUN-A-NODE.md), peer discovery and a persistent peer book (PR #1820), and the node's fees disclosed in every stratum login reply (PR #1880). The earlier owed-ledger model and its rules (PRs #1697 / #1704, #1872, #1884, #1894, #1895) are retired on this lane. Its payout rules and a public comparison with other decentralized pools are in docs/xmr-lane/payout-fairness.md (PR #1879) and docs/xmr-lane/comparison.md (PR #1901), both written for the earlier owed-ledger model. - Rule upgrades (XMR lane). Rule upgrades are voted by miners' work (PR
#1962, wired at PR #2010): a node operator can set
--vote no; a miner can setvote=<n>as the password in a stock xmrig. Every build today compiles only the first epoch. The pool identity does not change with the rules. - Reference prototypes under
proto/(TLA⁺, MRR refimpl + goldens, the M4 sync feasibility harness, testbeds) and the v37 design-track spec/headers undersrc/sharechain/v37/. These are for study and reproduction, not deployment. - Machine-checked proofs for the XMR lane's payout split (Path B), in
progress. The payout arithmetic is being written as a Lean 4 model, with
theorems to be proved that every paying block's outputs sum to exactly the
block reward, that a larger contribution never lowers that payee's output
within the window, and that the order in which work arrives does not change
the outputs, plus theorems about the arithmetic's integer widths and division
by zero. The statements are fixed and locked with the maintainer's signature,
so the proofs cannot weaken them, and each proof will be re-checked by several
independent proof kernels in an isolated gate. A differential fuzzer will run
the model against the production C++. This will prove the model; the C++ is
tied to it by fuzzing, not by proof. The Lean project will live under
proto/lean/, next to the TLA⁺ specs. - The production multi-coin pool code (v36 line) that c2pool actually runs.
- Not wired into a production node. Outside the XMR lane, the v37 engine is a reference/prototype behind CI and nothing settles on a live network. The XMR lane's node can run a pool on Monero regtest, stagenet and testnet; it is not in production anywhere.
- No public v37 network. The XMR lane's pool mode is for Monero's test networks only; the other lanes exercise simnet / loopback only.
- No performance benchmark. The only performance artifact is a Python feasibility harness (M4). There is no benchmark of the real engine; throughput, latency, and scaling claims are unproven until one exists.
- XMR lane has no mainnet pool mode. Its RandomX verify runs CI-gated in
light mode; the XMR PayoutDescriptor kind-bytes (0x10 / 0x11) are activated
add-only (PR #1518). On mainnet the node runs only
--follow-only, and needs--i-understand-mainneteven for that. Mainnet pool mode is disabled in code. Open items before mainnet are tracked privately; mainnet pool mode stays off until they close and an independent review and a multi-node stagenet soak pass. - Monero CCS: the funding proposal (MR !699) was withdrawn by its author on 2026-10-04 while the payout model is replaced by Work Receipts (Path B). No funding application is open.
- No token, no production deployments. There is no v37 token, and nothing v37 is deployed in production.
- Formal ≠ empirical. Model-checking bounds behavior over small configurations; it does not substitute for a benchmark or a live network.
- In July 2026 the LTC v36 line hit a consensus incident: specific false-activation
modes of the AutoRatchet (an automatic protocol-upgrade latch) could trip on
absence-as-assent and flap without hysteresis, desynchronizing the share chain.
Those specific modes were caught and are now guarded by regression tests — see
commit
a7e5b29b8(LTC ratchet mode-2 false-activation guard, PR #930) and its C5 regression KATs. A deeper redesign — deterministic ancestry-depth activation with hysteresis and chain self-heal, to close the whole class rather than the known modes — is in progress on the design track and not yet landed. We do not claim the class is fully closed. - Donation script (legacy key, disclosed): the v36 donation output of the parent share's coinbase (LTC, BTC, DGB, BCH) currently uses a P2SH script that inherits a legacy p2pool donation key from the upstream codebase. This is not an endorsement by, or involvement of, any third party — it is inherited code. It is scheduled for replacement with a c2pool-only script in v37. v36 blocks already produced with the inherited script are immutable consensus history and cannot be retroactively changed; the clean script becomes the default at the v37 boundary. The merged-chain coinbases c2pool builds itself (DOGE, NMC and the other aux chains) no longer pay it: their donation output pays a single c2pool key (P2PKH, see Who is paid on a merged chain), the key c2pool-dash donates to.
- The LTC line ratcheted to V36. Since 2026-11-13 00:00:00 UTC
the LTC share chain runs share version 3601 (the V36 share format under share
type 3601). Only c2pool v0.2.12.1 and later are on it; Python
p2poolnodes are not. - V36 is the end of the line for the Python implementation. The Python
p2poolis no longer maintained. V36 is the final share format shared between the Python codebase and c2pool (C++). - v37 is C++ only. The next generation — Work Receipts and the MRR
Roundabout settlement/lanes core — is being built exclusively in c2pool. There
is no Python v37, and the v37 sharechain does not interoperate with Python
p2pool. v37 remains design- and prototype-stage per the notes above and must not be run in production.
- The v37 research line is merged to
master(PR #809, "V37 dev"), and the v37 engine consumer tree (src/c2pool/v37/, W1 to W6) and the isolated XMR Family-B lane (src/impl/xmr/) now build behind CI on both build legs. The checks required before a merge tomasterareattribution-gate,canon-check, the DASH gates G1 and G3a, the BCH gates G3a and G3b,PR path filter,PR platform coverage statusandTest allowlist drift-guard. The coin matrix (DASH / LTC / BCH / DGB / DOGE), the Linux x86_64 and ASan/UBSan legs and the other CI lanes are not required checks; the CI badge above shows the state of the latest master run. The RandomX-dependent XMR checks run CI-gated in light mode, and the CodeQL security scan is a non-gating job. Two v37 relay KATs have known timing flakes (#1885, #1890) and are retried up to 3 times; CI reports every retry as a warning.v37_convergence_soakis an undiagnosed safety pin (#1905) and is not retried.
c2pool builds on ideas from p2pool but is an independent codebase. No outside party is represented as endorsing, maintaining, or being involved in c2pool.
c2pool is an independent C++ implementation of the P2Pool sharechain concept originally created by Forrest Voight (forrestv, https://github.com/forrestv/p2pool).
Development is supported by Anthropic's Claude for Open Source program (2026). The design, the consensus rules, and responsibility for every byte shipped remain with the maintainers.
Two Dash blocks in a row from the daemonless pool, a third time (2026-11-27 11:42:07 and 11:43:12 UTC) — #2579253 and #2579254, 65 seconds apart. Both were built from embedded coin-state with no Dash Core node on the serve path, and both are confirmed.
Two Dash blocks in a row from the daemonless pool, again (2026-11-23 02:37:02 and 02:37:35 UTC) — #2576844 and #2576845, 33 seconds apart. Both were built from embedded coin-state with no Dash Core node on the serve path, and both are confirmed.
Two Dash blocks in a row from the daemonless pool (2026-11-15 03:40:39 and 03:42:26 UTC) — #2572489 and #2572490, 107 seconds apart. Both were built from embedded coin-state with no Dash Core node on the serve path, and both are confirmed.
First LTC + DOGE twin block found by c2pool in production (2026-11-12 15:46:10 UTC) LTC #3211872 + DOGE #6454700 — one proof of work, 6.256 LTC + 10,001 DOGE, found by a public V36 pool node (about 210 GH/s) eleven hours after it moved from Python p2pool to c2pool v0.2.12.2.
LTC share chain on share version 3601 (2026-11-13 00:00:00 UTC) — the flag day passed without a split. Python p2pool and c2pool before v0.2.12.1 can no longer join the share chain; the nodes on it run c2pool.
First merged-mined DOGE block: #6135703 (2026-03-23) — decentralized LTC+DOGE merged mining via P2Pool V36, cross-validated with c2pool on shared share chain
First daemonless DOGE block: (2026-03-27) — DOGE block accepted on testnet4alpha via embedded SPV P2P, no dogecoind RPC needed
Daemonless DASH chain state at the live tip (2026-07-29) — an embedded DASH node started from an empty data dir reached mainnet tip #2513008 in about four minutes with no
dashdin the path: 16 MB of headers, 57 tip advances, and the full masternode set (8,620 deltas over 59mnlistdiffmessages) acquired entirely over coin P2P rather than fromprotx list. Chain-state acquisition only — this is not a block found daemonlessly on DASH.First V36 Twin Block: LTC #3085349 + DOGE #6154761 (2026-04-05) — simultaneous LTC+DOGE block found by v36-signalling nodes running p2pool v36 producing V35 shares with
desired_version=36; detected and displayed by c2pool's embedded block scannerSharechain Transparency Explorer (2026-04-07) — defragmenter-style sharechain visualization with interactive PPLNS treemaps, animated hover effects, per-miner LTC+DOGE payout breakdown, V36 upgrade pressure for V35 miners
Bitcoin block mined by P2Pool (2026-06-27 05:34:44 UTC) BTC #955609
Bitcoin block mined by P2Pool (2025-03-07 06:08:22 UTC) BTC #886688
First DASH block, c2pool (2026-07-20 01:15:15 UTC) DASH #2507753 — a solo X11 block. The DIP4 coinbase pays the masternode the network requires at that height, and dashd accepted it. The payee is checked against the template before the block is broadcast; work built on a stale template is discarded, not mined.
DASH block at a full-payment height (2026-07-20 23:25:32 UTC) DASH #2508254 — six transactions, three consensus-mandated payments in the coinbase. The full payee set was assembled and verified against the template before submission, and dashd accepted the block. The demanding case takes the same path as the trivial one.
| OS | Version | Compiler | Boost | Arch | Status |
|---|---|---|---|---|---|
| Ubuntu | 24.04.4 LTS | GCC 13.3 | 1.90 (Conan) | x86_64 | Working |
| macOS | 26.6 (Tahoe) | Apple Clang 21.0 | 1.90 (Conan) | arm64; x86_64 cross-compiled, run under Rosetta 2 | Working |
| Windows | 11 (26100) | MSVC 2022 | 1.90 (Conan) | x86_64 | Working |
Pre-built binaries are available on the Releases page. The current release line is v0.2.x (V36). Packages are built per parent chain and named c2pool-<coin>-<version>-<platform> (ltc, btc, dgb, dash, bch, bip110 — the coin matrix in .github/workflows/release.yml).
| Platform | Package | Notes |
|---|---|---|
| Linux x86_64 | .tar.gz |
Extract and run ./c2pool-<coin> (or ./start.sh); requires glibc 2.38 and libstdc++ from GCC 13 or later (Ubuntu 24.04+, Debian 13+). The packages do not start on older distributions (Ubuntu 22.04, Debian 11/12); build from source there (see doc/build-unix.md; tested on Ubuntu 24.04). |
| macOS (universal) | .dmg or .zip |
One universal binary for Apple Silicon and Intel Macs; requires macOS 26.0 or later; no Homebrew needed |
| Windows x86_64 | .zip or setup.exe |
Installer bundles VC++ Runtime + firewall rules |
macOS packages are built on an Apple Silicon build host. The arm64 slice is a native build; the x86_64 slice is cross-compiled there and started under Rosetta 2 before the package is published. Both slices link the same pinned libraries, statically. Intel Macs remain a supported target through the x86_64 slice. Details: docs/ci-macos.md.
Each release includes a SHA256SUMS file, and recent releases also include a
detached signature SHA256SUMS.asc (from v0.2.7; added to v0.2.8 on 2026-10-03).
Check the signature with the maintainer key published at
https://github.com/frstrtr.gpg (key fingerprint 99556F8DE6AD66057A1A10EC50AB1379285EFE76):
curl -s https://github.com/frstrtr.gpg | gpg --import
gpg --verify SHA256SUMS.asc SHA256SUMSThen verify the files:
# Linux / macOS
sha256sum -c --ignore-missing SHA256SUMS
# Windows (PowerShell)
Get-FileHash c2pool-*-setup.exe -Algorithm SHA256
# Compare with the hash in SHA256SUMSAll release binaries are built from the tagged git commit. To verify a binary matches the source:
- Check the git tag:
git log <tag> --oneline -1(for examplev0.2.12.12.2) - Build from that tag following the platform-specific guide
- Compare the SHA256 of your binary with the release
SHA256SUMS
Exact binary reproducibility depends on compiler version and build environment. The
SHA256SUMSfile in each release documents the official build output.
Linux (Ubuntu 24.04)
sudo apt-get update
sudo apt-get install -y g++ cmake make git libleveldb-dev libsecp256k1-dev python3-pip
pip install "conan>=2.0,<3.0" --break-system-packages
export PATH="$PATH:$HOME/.local/bin" # so `conan` is on PATH (add to ~/.bashrc to persist)
conan profile detect --force
git clone https://github.com/frstrtr/c2pool.git
cd c2pool && git checkout v0.2.12.12.2 # or the newest tag on the Releases page; omit to build master
mkdir build && cd build
conan install .. --build=missing --output-folder=. --settings=build_type=Release
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build . --target c2pool-ltc -j$(nproc)
./src/c2pool/c2pool-ltcThis builds the LTC node (c2pool-ltc). Every coin has its own target
(c2pool-dash, c2pool-btc, … — see Build targets), and the
release packages ship one binary per coin (c2pool-<coin>-VERSION-…). The
target c2pool is a dev alias of the LTC node. For Dash, build with BLS —
see Dash: build with BLS below; the plain
--target c2pool-dash build is BLS-dark. For a production node, prefer the
signed binaries from
Releases (see
Verify downloads), or build Release as above: a Debug
build (build_type=Debug + --preset conan-debug) is several times larger
and slower and is meant for development only.
Linux (Ubuntu 26.04 LTS) — theoretical: CI builds on 24.04, so the 26.04 path below is documented from known toolchain deltas, not yet exercised in the CI matrix. Report any gotcha via an issue.
The 24.04 steps above apply unchanged; the build is Conan-managed, so it is largely toolchain-version agnostic. Expect only these deltas on 26.04:
- Newer default compiler. 26.04 LTS ships a newer default GCC (15.x) / libstdc++. No action needed —
conan profile detect --forcepicks up the system toolchain, andconan install --build=missingbuilds the C++ dependencies (Boost 1.90, etc.) against it. If the newer compiler turns a dependency warning into an error,--build=missingalready rebuilds that dependency from source with your toolchain. - Externally-managed pip (PEP 668). As on 24.04, install Conan with
pip install "conan>=2.0,<3.0" --break-system-packages, or prefer an isolatedpipx install "conan>=2.0,<3.0"(sudo apt-get install -y pipx) so the tool does not touch the system Python. (Conan is c2pool's C++ dependency manager — a pip-distributed tool — and is unrelated to any Python component of a pool.) - apt package names are unchanged:
g++ cmake make libleveldb-dev libsecp256k1-dev python3-pip.
Everything else — conan install → cmake (Release toolchain) → cmake --build — is identical to 24.04.
macOS (Intel & Apple Silicon)
xcode-select --install
brew install cmake boost leveldb secp256k1 nlohmann-json yaml-cpp
git clone https://github.com/frstrtr/c2pool.git
cd c2pool && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --target c2pool-ltc -j$(sysctl -n hw.ncpu)
./src/c2pool/c2pool-ltcWindows (setup.exe or build from source)
Download c2pool-ltc-VERSION-windows-x86_64-setup.exe from Releases and run the installer. Or build from source — see doc/build-windows.md.
That's it. No litecoind, no dogecoind, no config file. The node starts in integrated P2P pool mode with embedded LTC and DOGE SPV nodes, connects to p2pool sharechain peers via hardcoded bootstrap hosts, and waits for shares before opening stratum to miners.
Miners connect to stratum and set their LTC payout address as the username
(p2pool convention). No --address flag needed.
c2pool-dash verifies Dash quorum commitments, ChainLocks, InstantSend locks
and governance votes with dashbls — the BLS12-381 library dashd itself
links. It is not on ConanCenter, so it is built once from dash's own
src/dashbls subtree by scripts/build_dashbls.sh. Continue from the Linux
quick start above (still inside build/):
sudo apt-get install -y autoconf automake libtool libgmp-dev
../scripts/build_dashbls.sh "$HOME/.c2pool-deps/dashbls"
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release \
-DC2POOL_DASH_BLS=ON -DDASHBLS_ROOT="$HOME/.c2pool-deps/dashbls"
cmake --build . --target c2pool-dash -j$(nproc)
./src/c2pool/c2pool-dash --version # the last line must end in: bls=dashblsCheck the last line of --version:
--version ends in |
Meaning |
|---|---|
bls=dashbls |
BLS verification armed. This is what the release packages ship. |
bls=stub |
Built with -DC2POOL_DASH_ALLOW_NO_BLS=ON (see below). Quorum/ChainLock/InstantSend/governance verification is inert, and the daemonless posture (a bare c2pool-dash --run) refuses to start with [BLS-STUB] refusing to start (exit 2). Only a dashd-attached node (--coin-rpc) runs on a stub build. --allow-stub-bls overrides the refusal for testing only — never in production. |
dashbls is found automatically on a fresh configure (one that does not pass
-DC2POOL_DASH_BLS at all) when it is installed under $DASHBLS_ROOT,
$HOME/.c2pool-deps/dashbls (where the command above puts it), /usr/local
or /opt/dashbls; configure then prints dashbls auto-detected at <prefix>.
Without dashbls the c2pool-dash target fails to build with a message that
says how to fix it; every other binary builds as usual. A stub build is only
for a node attached to its own dashd, or for CI: configure with
-DC2POOL_DASH_ALLOW_NO_BLS=ON.
-DC2POOL_DASH_BLS=ON with the library missing is a configure-time error, not
a silent fallback. The script builds the src/dashbls subtree of the dash
release tag pinned in it (DASH_REF, currently v23.1.7) — dashd's own BLS
code, not the standalone bls-signatures repo. It clones into
/tmp/dashbls-build, so git and network access are needed. On macOS install the same tools with
brew install autoconf automake libtool gmp.
Full step-by-step guides: Linux | macOS | Windows
Common operator questions (merged coins, payouts, dashboard): docs/FAQ.md
The Operating modes, Defaults, Peer discovery, Merged mining, Ports and Configuration reference sections below describe the LTC binary (
c2pool-ltc, dev aliasc2pool,src/c2pool/main_ltc.cpp). The other per-coin binaries have their own, smaller flag surfaces — see Per-binary launch reference.
c2pool has four operating modes. The default is a full P2P pool — no flags required.
| Mode | CLI flag | P2P sharechain | Coinbase payouts | Use case |
|---|---|---|---|---|
| Integrated | (default) | yes | PPLNS from sharechain | Decentralized pool node |
| Solo | --solo |
no | Proportional by miner hashrate | Private pool for own ASICs |
| Custodial | --custodial |
no | 100% to --address |
Hosted pool, off-chain accounting |
| Sharechain | --sharechain |
yes | (no mining) | P2P relay node only |
--soloand--custodialare disabled (since v0.2.11.1): c2pool-ltc refuses to start in them. Their coinbase has no room for the miners' extranonce, so every block they found was invalid while the shares were accepted. Use the integrated (default) mode.
Legacy --standalone mode (minimal stratum + RPC daemon, no embedded SPV) is available for backwards compatibility.
If you run DASH without a dashd arm (a bare --run is daemonless by default),
you are trusting the c2pool release build for one specific piece of data. This
section says exactly which, and why.
To build a DASH block, c2pool must know which masternode is next in the DIP-3
payment queue. Paying the wrong one produces a coinbase the network rejects
(bad-cb-payee) — a mined block thrown away. Ranking the queue needs each
masternode's scriptPayout and nLastPaidHeight, and neither is available
from the DASH P2P network: the Simplified MN List (mnlistdiff) omits both,
and neither is committed in merkleRootMNList, so there is no header
commitment to check them against.
So c2pool ships a release-pinned masternode set — a trust anchor of the
same class as Bitcoin Core's assumeutxo — and replays blocks forward from it
to the current tip.
What the node verifies for itself, with no trust:
- chain position — the anchor names a block hash, and is rejected unless c2pool's own X11-PoW + DGW-validated header chain holds exactly that hash at exactly that height;
- integrity — a SHA-256 digest over the anchor's contents (an integrity check on the file, not a signature: whoever can change the source can recompute the digest — it catches accidents, not malice);
- forward consistency — every block replayed from the anchor re-derives
the projected payee and compares it against that block's real coinbase, and
a contradiction fails the bridge closed. This proves the payout state of
every masternode paid inside the replayed window. A wrong
scriptPayoutornLastPaidHeightof an eligible masternode not yet paid there surfaces only at its first payment: our block names the wrong payee, the network rejects it (bad-cb-payee), and that block's reward is lost. Nothing is paid to a wrong address, because every node checks the payee. One full payment cycle (every eligible masternode paid once, about 3,100 blocks on mainnet in November 2026) covers the whole eligible set.
What you are trusting: the membership and payout state of the masternode set at the anchor height. Nothing available to the node can prove it.
A fully trustless alternative exists — replaying every block from DIP-3 activation (~1.5M blocks) — and is planned as a later opt-in verify-mode. It is not implemented today.
Fail-closed by design. If the anchor is missing, corrupt, for the wrong
network, in the wrong chain position, further behind the tip than
--embedded-mn-bridge-max (default 40000 blocks, ≈69 days; measured from the
persisted cursor when a node resumes, so in practice this only stops a cold
start from an old release), or contradicted
by a replayed block, c2pool logs the refusal at ERROR and refuses to serve
embedded DASH templates. It falls back to a configured dashd, or serves
nothing. It never guesses a masternode payee.
Running DASH with a dashd RPC configured does not use the anchor at all —
protx list registered true is authoritative and is used instead.
Both the anchor and the RPC seed carry the registered masternode set, not
the valid one: protx list valid filters PoSe-banned masternodes out entirely,
which makes "banned" and "does not exist" the same observation. Because the
replay's only insertion path is ProRegTx, a ProUpServTx that later revives
such a masternode would have no entry to revive, and it could never re-enter the
DIP-3 payment queue — leaving every later payee projection one queue slot ahead
of the chain's. Carrying banned masternodes as present but ineligible
(eligibility is derived from poseBanHeight) keeps the revive path working.
Details, provenance of the shipped anchor, and the release-time re-pinning
procedure: src/impl/dash/coin/checkpoints/README.md.
Each level reduces the trust the anchor needs; the last one removes it.
| Level | What it proves | Status |
|---|---|---|
| 1. Reproduce | The pinned set equals what your own synced dashd reports at the anchor height, in all 17 columns of every masternode. | Available: tools/dash/gen_mn_checkpoint.py compare (below). |
| 2. Attest | Several independent masternode operators reproduced the same content digest and signed it with a key tied to their masternode. | Procedure below; no round has been run yet. |
| 3. Payout-verified window | Before the first template, every eligible masternode has been paid at least once in a replayed, PoW-validated block, so each scriptPayout and nLastPaidHeight is confirmed by a real coinbase. |
Not enforced by code; a design is under review. Today a cold start from the h=2,563,800 anchor replays more than one full payment cycle before serving. |
| 4. Full replay | No trust: the set is rebuilt from DIP-3 activation (~1.5M blocks). | Planned opt-in verify-mode; not implemented. |
The anchor in this tree: height 2,563,800, blockhash
0000000000000016a129aa626ea761e08a389af18b4a64a2f8556596edd08e22, content
digest a2fbc0b51258f8cf479a3035887c6927ae6e3c425f1b3eabdd16f212b6c9a6fc.
How an operator attests an anchor
-
Check out the release tag and print the anchor's height, blockhash and digests:
python3 tools/dash/gen_mn_checkpoint.py verify \ src/impl/dash/coin/checkpoints/dash_mn_checkpoint_mainnet.inc --network mainnet -
Compare it with your own synced dashd (Dash Core 24 or later):
python3 tools/dash/gen_mn_checkpoint.py compare \ src/impl/dash/coin/checkpoints/dash_mn_checkpoint_mainnet.inc --network mainnet \ --rpc-url http://127.0.0.1:9998 --rpc-user <user> --rpc-password <password>The result must be
MATCH, with the same content digest on both lines. Do not compare the FILE digest with one you generate yourself: it also covers the provenance lines and the key encoding, so it differs even when every row agrees. The content digest does not.checkpoints/README.mdhas an offline variant fromdash-clicaptures. -
Publish the height, blockhash, content digest, your Dash Core version and the result, signed with a key tied to your masternode. For example, with the owner or collateral address in your wallet:
dash-cli signmessage <address> "c2pool-dash anchor mainnet 2563800 <blockhash> content <content digest> MATCH"
Anyone can check it with
dash-cli verifymessage <address> <signature> "<message>"anddash-cli protx info <proTxHash>(the address must be that masternode's owner or collateral address). -
A release counts as attested when at least N independent operators have published matching content digests (N: to be set by the project). Release notes link the attestations.
# Default: full P2P pool, embedded SPV, wait for peers
./c2pool
# Same, with explicit address for node-owner fee
./c2pool --address YOUR_LTC_ADDRESS --fee 1
# Solo pool for own miners (no sharechain, proportional payouts)
# (disabled since v0.2.11.1: c2pool-ltc refuses to start, see above)
./c2pool --solo
# Custodial pool (all coinbase to operator, stratum for accounting)
./c2pool --custodial --address YOUR_LTC_ADDRESS
# With external LTC daemon instead of embedded SPV
./c2pool --no-embedded-ltc \
--coind-address 127.0.0.1 --coind-rpc-port 9332 \
--rpcuser user --rpcpassword pass
# Testnet
./c2pool --testnet
# With config file
./c2pool --config config/c2pool_mainnet.yaml
# Full option reference
./c2pool --help| Feature | Integrated | Solo | Custodial | Sharechain |
|---|---|---|---|---|
| Embedded LTC SPV | on | on | on | -- |
| Embedded DOGE SPV | on | on | on | -- |
| Stratum server | yes | yes | yes | -- |
| VARDIFF | yes | yes | yes | -- |
| P2P share exchange | yes | -- | -- | yes |
| PPLNS payouts | yes | -- | -- | -- |
| Proportional payouts | -- | yes | -- | -- |
| Single-address coinbase | -- | -- | yes | -- |
| Merged mining (DOGE etc.) | yes | yes | yes | -- |
| Web dashboard + REST API | yes | yes | yes | -- |
| Per-worker accounting | yes | yes | yes | -- |
--address required |
no | no | yes | no |
--fee supported |
yes | yes | -- | -- |
| Redistribute modes | yes | -- | -- | -- |
| ShareTracker / LevelDB | yes | -- | -- | yes |
| Think loop / monitoring | yes | -- | -- | -- |
| Mode | Who gets paid | How amounts are calculated |
|---|---|---|
| Integrated | All miners in PPLNS window | Share weight from sharechain (decentralized consensus) |
| Solo | Connected stratum miners | Proportional to real-time hashrate from RateMonitor |
| Custodial | Node operator only | 100% of block reward to --address; miners tracked in /stratum_stats |
In integrated and solo modes, miners set their payout address as
their stratum username (e.g., LcAddress.worker1). The address appears
directly in coinbase outputs. --address is optional — it serves as the
node operator's fee destination and fallback when no miners are connected.
In custodial mode, miner stratum usernames are used for accounting only
and never appear in coinbase outputs. The backoffice polls /stratum_stats
for per-worker hashrate, accepted shares, and connection time.
Every connection has its own pseudoshare difficulty (vardiff). It starts at
the vardiff floor and moves toward one pseudoshare every target time (3 s;
10 s on c2pool-dash). A miner can set it in three ways. They use two
different units:
- Internal units: the node's difficulty, as python p2pool reads
ADDRESS+N. Logins carried over from p2pool keep their meaning. - Wire units: the number the miner sees in
mining.set_difficulty. On scrypt coins (c2pool-ltc,c2pool-dgb) wire = 65536 × internal, p2pool'sDUMB_SCRYPT_DIFF. Onc2pool-btc(SHA256d) andc2pool-dash(X11) the two are the same.
| Where | Units | Example | Effect |
|---|---|---|---|
Username suffix +N |
internal | ADDRESS+1, ADDRESS.rig+1 |
Fixed difficulty N for the connection; vardiff is off. c2pool-dash rounds N down to a power of two, as its vardiff does. |
Password d=N |
wire | d=65536, x,d=65536, d=65536;x |
Start difficulty N; vardiff continues from it. |
mining.suggest_difficulty |
wire | [65536] |
Sets the difficulty when it arrives; vardiff continues from it. |
On a scrypt coin, ADDRESS+1 and d=65536 both send the miner
mining.set_difficulty 65536. The difference is that +1 stays fixed,
while d=65536 is where vardiff starts. On BTC or DASH, ADDRESS+4096 and
d=4096 both send 4096.
+Nwins. With it,d=Nandmining.suggest_difficultyare ignored.- Without
+N,d=Nandmining.suggest_difficultyeach set the difficulty when they arrive, and the later one wins.d=Nis read once per connection, at the first successfulmining.authorize. In the password it can be the whole value or onekey=valuetoken separated by,or;. - A value that is not a positive finite number is ignored, and the node logs it once per connection.
Each value, whether a miner set it or vardiff computed it, stays within the
vardiff floor and ceiling (--stratum-min-diff / --stratum-max-diff on
c2pool-ltc). It also never goes above the pool-share difficulty of the job,
as in p2pool. So a hash that would make a sharechain share is always worth
submitting, and a miner never withholds one. The node sends
mining.set_difficulty before any job whose difficulty differs from the
last one it sent.
Running c2pool with no arguments is equivalent to:
--integrated --embedded-ltc --embedded-doge --wait-for-peers
--header-checkpoint 3088000:4a7fc8d4...
--doge-header-checkpoint 6160000:51efd04d...
| Setting | Default | Override |
|---|---|---|
| Operating mode | Integrated P2P pool | --solo, --custodial, --sharechain, --standalone |
| LTC backend | Embedded SPV (DNS seeds) | --no-embedded-ltc (requires RPC daemon) |
| DOGE backend | Embedded SPV | --no-embedded-doge (disables merged mining) |
| LTC bootstrap | Block 3,088,000 | --header-checkpoint HEIGHT:HASH |
| DOGE bootstrap | Block 6,160,000 | --doge-header-checkpoint HEIGHT:HASH |
| Startup mode | Wait for peers (persist=true) | --genesis or --startup-mode auto |
| Coin daemon | Not required | --coind-address / --coind-rpc-port |
--address |
Optional (miners use stratum username) | Required only for --custodial |
--fee |
0% | -f 1 (1% to --address) |
| Stratum port | 9327 | -w PORT |
| P2P port | 9326 | --p2pool-port PORT |
| Web port | 8080 | --web-port PORT |
| Data directory | ~/.c2pool (%APPDATA%\c2pool on Windows) |
--data-dir PATH |
Running two instances on one host? Give each its own
--data-dir. All per-instance on-disk state — the sharechain LevelDB, address store, whitelist, logs, ratchet, and found-blocks db — is rooted there, so co-located instances never contend the same LevelDBLOCK. Leaving it unset keeps the historical~/.c2poolpath, byte-for-byte unchanged.
On --testnet, mainnet SPV checkpoints are automatically cleared (testnet
uses a different chain). Ports shift to testnet defaults (P2P 19326,
stratum 19327).
The sharechain P2P layer discovers peers from multiple sources:
| Source | Config | Priority |
|---|---|---|
| CLI seed nodes | -n HOST:PORT (repeatable) |
Highest |
| YAML config | seed_nodes: list |
Appended to CLI |
~/.c2pool/ltc/pool.yaml |
bootstrap_addrs: (auto-generated, persists learned peers) |
Medium |
| Hardcoded bootstrap hosts | ltc.voidbind.com, p2p-spb.xyz, usa.p2p-spb.xyz, + 3 IPs (V36 share-chain nodes only) |
Fallback |
With startup_mode: wait (default), the node waits until peers deliver
shares before opening stratum. This matches p2pool's PERSIST=True behavior.
| Startup mode | CLI flag | Behavior |
|---|---|---|
| wait (default) | --wait-for-peers |
Wait for peers to deliver shares, then mine |
| genesis | --genesis |
Create first share immediately (new chain) |
| auto | --startup-mode auto |
Wait 60s for peers, then genesis |
LTC and DOGE have built-in embedded SPV nodes (enabled by default). Other chains need their daemon running externally.
| Coin | chain_id | Backend | --merged example |
|---|---|---|---|
| DOGE | 98 | Embedded SPV | auto-configured |
| PEP | 63 | External | PEP:63:127.0.0.1:29377:user:pass |
| BELLS | 16 | External | BELLS:16:127.0.0.1:19918:user:pass |
| LKY | 8211 | External | LKY:8211:127.0.0.1:9916:user:pass |
| JKC | 8224 | External | JKC:8224:127.0.0.1:9770:user:pass |
| SHIC | 74 | External | SHIC:74:127.0.0.1:33863:user:pass |
| DINGO | 50 (mainnet) | External | DINGO:50:HOST:PORT:user:pass |
DOGE merged mining activates automatically when --embedded-doge is on (default).
External daemons use createauxblock/submitauxblock RPC. Every chain reached
over RPC except DOGE needs --merged-payout-address SYMBOL:ADDRESS (an address
of that chain for createauxblock; the merged coinbase itself pays PPLNS), or it
is not mined. Exempt: DGB and any chain c2pool has no address parameters for,
which keep their RPC backend without one (as before).
The miner's stratum login decides, per merged chain. The payout a share carries (its LTC payout key and its merged addresses) is fixed when its job is built and committed in the job's coinbase, as in p2pool.
- An LTC address and no address for a merged chain — the chain pays the
LTC address's key (its hash160): P2PKH and P2WPKH as P2PKH, P2SH as P2SH.
A P2SH login without an explicit merged address is warned: if it is a
segwit-wrapped wallet address (P2SH-P2WPKH/P2WSH, e.g.
M...), give your DOGE address explicitly (LTC_ADDRESS,DOGE_ADDRESS); on DOGE (no segwit) such an output becomes spendable by anyone once the redeem script is public. The dashboard's workers list shows "P2SH address: if segwit-wrapped, give a DOGE address". A legacy P2SH (a multisig, the pool's own donation script among them) spends on DOGE as it does on LTC. - An address given for the chain — paid as given: the comma form
LTCADDR,MERGEDADDR(also|,;, space), the slash formLTCADDR/CHAIN_ID:ADDR(repeatable),mining.set_merged_addresses, a swappedMERGEDADDR,LTCADDR, or a merged chain's address as the whole login (the LTC payout then uses its hash160). With one merged chain configured a second address no chain identifies goes to that chain (as before). - An address that cannot be given to exactly one configured chain never
loses the miner's work: it is ignored, with a warning in the log, and the
chains get the LTC address's key (never a guess between chains):
- not an address at all (bad checksum, junk; comma or slash form, or
mining.set_merged_addresses) — as p2pool does; - with several merged chains, an address two of them could take (shared
version bytes: DOGE P2PKH is Bellscoin P2SH; P2SH 22 is DOGE, PEP and
SHIC; LKY's P2PKH 47 is Junkcoin's regtest one; on testnet DOGE, PEP, LKY
and SHIC all use P2PKH 113 and P2SH 196), or that none of them
identifies. Name the chain with the slash form, e.g.
LTCADDR/98:DOGEADDR/63:PEPADDR.
- not an address at all (bad checksum, junk; comma or slash form, or
- Empty login, or an LTC address that is invalid or another coin's — the
login is accepted and its shares are redistributed by
--redistribute(split|pplns|fee|boost|donate, see Configuration reference). The default,split, pays every such share 50% to the node owner and 50% to the donation: the share pays the node owner (--node-owner-address, else--address) with donation 32768/65535 instead of--give-author's, so PPLNS gives the owner and the donation half of its weight each, on LTC and on every merged chain the share names no address for (the owner's merged address there:--node-owner-merged-addressfor DOGE, else the owner's key converted; a P2SH owner key is not converted, that chain's half goes to the donation). Without a usable owner address the node keeps the oldpplnsbehaviour, or the other terms of a hybrid spec (logged once at startup). The job sent right aftermining.subscribe, built before the login, is such work too: a share found on it and submitted after the authorize pays the owner and the donation the same way. With the other modes, as p2pool does: the LTC payout goes to the recipient the mode picks, and every merged chain the share names no address for gets that recipient's key (the node owner's merged addresses when it is the owner) — written into the share, so every node derives the same payout. Attributable work is never halved (p2pool's "case 4", extended): a login whose LTC address is invalid, empty or another coin's, or one a V36 share cannot carry (P2WSH/P2TR: a 32-byte witness program, while a share carries a 20-byte payout hash), and that names a merged address has its LTC payout paid to that address's key, with the node's normal donation; the merged addresses are paid as given. The address must be one the login named (comma or slash form, a re-authorize of the same LTC address,mining.set_merged_addressesafter the authorize, or before the first authorize of a new connection), of a configured merged chain on this network, in a legacy form: P2PKH (paid as P2PKH) or P2SH (paid as P2SH); a bech32 merged address does not count. DOGE's is used if named, else the lowest configured chain id's. The workers list shows "address invalid → parent paid to the DOGE address's key" or "P2WSH/P2TR address → parent paid to the DOGE address's key" ("the chain_id=N address's key" for another chain). An address set while another login was accepted on the connection never counts. A login naming no usable address is redistributed as above, with a warning in the log ("address invalid → redistributed", "P2WSH/P2TR address → redistributed" in the workers list). A swapped pair whose first address is not valid (DOGE-with-bad-checksum,LTCADDR) pays the valid LTC address, as before.
A re-authorize on the same connection with the same LTC address and no merged
address keeps the merged addresses the previous login gave; with another LTC
address nothing of the previous login is kept (only
mining.set_merged_addresses carries over), and the connection gets new work
at once. While the merged chains are still being set up at startup, logins are
refused with "merged mining not ready yet; retry".
Merged payouts are derived from the sharechain, share by share, by the share's version:
- V36 shares keep the rule of p2pool and of earlier c2pool: the share's own merged address for the chain, else the first merged address this node has seen in a V36 share of the same parent script ("Tier 1.5"), else its parent key (P2PKH/P2WPKH as P2PKH, P2SH as P2SH). The V36 shares in the window at the flag day keep exactly these payouts: nothing moves at the switch.
- Share version 3601 (the shares every node makes from the flag day on) is resolved from the share alone: its own merged address for the chain, else its own parent key (P2PKH/P2WPKH as P2PKH, P2SH as P2SH). A 3601 share neither feeds nor uses Tier 1.5, so one share's merged address never pays for another share and every node derives the same payout whatever order it received the shares in (Tier 1.5 depended on that order, and one share naming another miner's parent script could take that miner's address-less shares).
The merged coinbase c2pool builds (every chain in multiaddress mode: DOGE
under LTC, and under DGB once its payout provider lands; NMC under BTC; the
other LTC aux chains) ends with its
donation output, which takes the donation and the PPLNS rounding remainder
(at least 1 satoshi). It pays one P2PKH key on every chain: script
76a914 20cb5c22b1e4d5947e5c112c7696b51ad9af3c61 88ac, on DOGE
D88Vn6Dyct7DKfVCfR3syHkjyNx9gEyyiv (testnet
nXBZW6xtYrZwCe4PhEhLDhM3DFLSd1pa1R), the key c2pool-dash donates to. It is
not the parent share's combined P2SH donation, which the LTC/BTC/DGB coinbase
keeps. A merged payout to that combined P2SH (a share redistributed by
--redistribute donate, a P2WSH/P2TR --node-owner-address without a merged
address) is added to the donation output, never paid as a miner output. A
createauxblock-mode chain's coinbase is its daemon's and has no donation
output.
c2pool nodes do not re-derive each other's merged coinbases, so the rule
decides no share's validity, and neither does the merged donation. Python
p2pool V36 nodes do re-derive the DOGE coinbase, with the combined P2SH as its
donation: on LTC testnet, whose shares stay V36 (no flag day), a Python V36
node rejects the c2pool shares that carry a DOGE block. A P2SH --node-owner-address without
--node-owner-merged-address is paid as the same P2SH on the merged chains,
with the same segwit-wrapped warning at startup. --solo / --custodial merged payouts do not use per-miner
merged addresses, and c2pool-btc (NMC) and c2pool-dgb (DOGE) do not carry
them.
From a fixed time (the flag day, set in the release: ltc::PoolConfig:: V3601_ACTIVATION_TIME; mainnet 2026-11-13 00:00:00 UTC from v0.2.12.1,
testnet unscheduled) every share is a share version 3601 share: the V36
share format under share type 3601. It is not voted through the AutoRatchet:
a share's version follows from its own timestamp. A share timestamped at or
after the flag day must be a 3601 share, one before it must not be, and a 3601
share's child is a 3601 share; the switch does not go through the 60%
upgraded-hash-power gate (the V35 → V36 switch keeps it). What 3601 changes:
- the merged payout rule above (V36 shares keep theirs);
- the AuxPoW commitment of a share carrying several merged chains must be the tree over exactly the blocks it carries (counted only, for V36 shares);
- c2pool advertises protocol 3601. From the flag day a peer below it (p2pool, c2pool before v0.2.12) is disconnected and refused, without a ban: it cannot load a 3601 share and its own V36 shares are invalid from then on. Such a node logs "version unsupported" for the 3601 shares it is sent before the disconnect and is left on a sharechain of its own. A node older than c2pool v0.2.12.1 is no longer on the LTC share chain: upgrade it to the latest release. p2pool is not supported. Our log says "peer ... is too old for share version 3601 ...: peer too old, upgrade to c2pool v0.2.12".
--v3601-activation-time UNIX moves the flag day on testnet or a private
--network-id chain only (every node of the chain must use the same time); a
mainnet node always uses the compiled one.
With one merged chain configured (DOGE alone, the default) every login is resolved as before (except an address that is not an address at all, now ignored as p2pool does). With two or more (e.g. DOGE + PEP), where the server before v0.2.12 gave an address to one chain by guessing, it is now ignored with a warning and the chains get the LTC address's key (as in case 1):
- a second address of a version two configured chains share: a P2SH
9.../A...(22: DOGE, PEP, SHIC), a DOGED...with Bellscoin configured (Bellscoin's P2SH is 30), an LKYL...(47) with Junkcoin configured; on testnet any DOGE/PEP/LKY/SHIC address (113, 196); - such an address as the only address (the "case 5" primary: the LTC payout uses its key) or as the first of a swapped pair;
- a second address no configured chain identifies: another LTC address, a Bitcoin address, an address of a chain that is not configured, or one of another network (a DOGE testnet address on mainnet).
Name the chain explicitly, e.g. LTCADDR/98:DOGEADDR/63:PEPADDR.
DigiByte Scrypt is its own parent chain with its own binary and sharechain:
c2pool-dgb (src/c2pool/main_dgb.cpp, sharechain port 5024). It is not
selected through the LTC binary — --net digibyte on c2pool-ltc is the LTC
binary's legacy chain selector (--net CHAIN, main_ltc.cpp usage text), not
the DGB pool. See c2pool-dgb below.
| Port | Purpose |
|---|---|
| 9326 | P2Pool sharechain (peer-to-peer) |
| 9327 | Stratum mining (with --stratum-http on, also the read-only REST API; see below) |
| 8080 | Web dashboard + REST API |
The REST API on the stratum port. python p2pool served its web API on
the worker port, and p2pool-aware trackers (miningpoolstats and others) poll
http://host:9327/global_stats. When --stratum-http is on, c2pool answers
such a request on the stratum port too: the stratum server looks at the first
line of a connection, and an
HTTP request line hands the connection to the web server's own request
handler. Same routes and JSON as the web port, but strictly read-only: GET and
HEAD only (other methods get 405), every local-only, token-gated or
state-changing route (/control/*, /web/log, /logs/export,
/api/config*, /api/admin/*, ...) answers 403 there whatever the client's
address or ?token=, the event stream answers 405, and the connection closes
after one response. Stratum lines are served exactly as before. An HTTP
connection is not a miner session, but it counts toward
--max-stratum-connections and the per-IP cap while open. At the stratum
handshake deadline the stratum side shuts the connection down and nothing more
is read or written; the slot is released when the HTTP side closes it. The
response write is closed at write start + the web idle timeout (30 s by
default; 30 s when that timeout is 0) if that comes first. At most
--stratum-http-budget (default 16, and at most
--max-stratum-connections minus 1) HTTP requests are in progress on the
stratum port at once, at most --stratum-http-per-ip (default 6) from one
address (one /64 for IPv6); the others are answered 503 and close at once.
--stratum-http-budget 0 answers every HTTP request on the stratum port with
503; --stratum-http-per-ip 0 sets no limit below the budget.
--stratum-http=true|false|auto (settings key stratum.http, same values;
also on/off/yes/no/1/0), default false; auto: on when the web server binds ::,
binds 0.0.0.0 and the stratum listener an IPv4 address, or binds the stratum
listener's own non-loopback address; off when it binds 127.0.0.1 / ::1
behind a reverse proxy, binds one LAN or VPN address while the stratum port
binds wider, binds 0.0.0.0 while the stratum port binds IPv6, or is disabled.
auto cannot see a firewall, a cloud security group or a container that
publishes only the stratum port: if the web port is closed that way, do not
use auto; keep --stratum-http=false (the default). The startup log says which:
stratum HTTP: ON (web bound to 0.0.0.0) or
stratum HTTP: OFF (web bound to 10.8.0.1, stratum to 0.0.0.0).
TLS stratum (stratum+ssl://). On a plain stratum connection a miner
cannot tell who sends it work: anything on the path (a hijacked route or DNS
name, a middlebox) can pose as the pool and take the hashrate. Firmware that
speaks stratum+ssl:// (Braiins OS and others) verifies the pool's
certificate instead. --stratum-tls [HOST:]PORT opens a second stratum
listener that speaks TLS; PORT alone binds the plain stratum listener's
address (--stratum host; on LTC --http-host). It needs
--stratum-tls-cert FILE (PEM, the full chain, leaf first, e.g. Let's
Encrypt's fullchain.pem) and --stratum-tls-key FILE (PEM, not
passphrase-protected, e.g. privkey.pem); settings keys stratum.tls_bind,
stratum.tls_cert, stratum.tls_key (LTC YAML stratum_tls,
stratum_tls_cert, stratum_tls_key). Without --stratum-tls nothing
changes.
- After the TLS handshake a connection is an ordinary stratum session of the
same server: the same JSON-RPC, vardiff and job handling, the same
--max-stratum-connectionsand per-IP caps (counted together with the plain port, keyed on the real remote address), refusal log, drain mode, miner list and dashboard rows. - TLS 1.2 and 1.3 only (TLS 1.2: ECDHE with AES-GCM or ChaCha20-Poly1305), no compression, no renegotiation, no session resumption, no client certificates. A handshake not done 10 s after the accept, or one that fails (a plaintext client on the TLS port), closes the connection; failures are counted and logged at most once a minute.
- A TLS handshake costs CPU on the thread that also runs the sharechain and
the templates, so new TLS connections are limited before it: 200 a second
from all addresses (400 back to back after a quiet spell), 5 a second from
one address or IPv6 /64 (20 back to back;
--stratum-tls-rate-per-ip R,--stratum-tls-burst-per-ip N), and at most 32 handshakes in progress, 8 from one address (--stratum-tls-handshakes N,--stratum-tls-handshakes-per-ip N; settings keysstratum.tls_rate_per_ip,stratum.tls_burst_per_ip,stratum.tls_handshakes,stratum.tls_handshakes_per_ip; 0 = no limit). Raise the per-address values for a farm behind one NAT or a local proxy. At the handshake limit a new connection evicts the oldest handshake that has been in progress for 1.5 s or more (counted as a failed handshake); with none that old, the new one is closed. A connection over a limit is closed at the accept, counted, and logged rate-limited like the other refusals (counted per address, one /64 for IPv6); a refusal by the handshake limit spends no rate token. The plain stratum port is not limited. A connection that has sent no byte 3 s after the accept is closed, whatever the 10 s handshake bound. Prefer an ECDSA P-256 certificate (certbot--key-type ecdsa): its handshake costs the server several times less than RSA-2048. - Renewals: the certificate and key are read again when either file's
modification time or size changes (checked at each new connection), and on
SIGHUP(kill -HUP <pid>, e.g. from a certbot deploy hook). New connections get the new pair; open ones keep theirs. A pair that does not load (for instance the certificate renewed but not yet the key) is logged and the last good pair stays in use. The key file must be readable by the user c2pool runs as. - HTTP on the stratum port (
--stratum-http) is answered on the plain port only. - A bad set (one flag without the others, a host that is not an IP address, a
certificate or key that does not load) is refused at start. A build without
OpenSSL (CMake
-DC2POOL_STRATUM_TLS=OFF; the default on macOS and Windows for now) refuses the three flags;--versionsaystls=onortls=off. The startup log names the listener and the certificate:stratum TLS: listening on 0.0.0.0:3334 (stratum+ssl://, TLS 1.2+; subject /CN=pool.example.org, valid until ...), with a warning when the certificate is expired or not yet valid, or the key file is readable by others or writable by anyone but its owner (group read, as in Debian'sroot:ssl-cert0640, is fine). If the TLS port cannot be bound, that is logged as an error and the node runs on without it, as for the plain stratum port. Given to a mode that opens no stratum listener (DASH, DGB or BIP110 without--run, BCH without--pool, LTC with--sharechain), the flags are warned about and have no effect.
Per-coin binaries use their own defaults. For DASH: sharechain 8999 on the v16
network and 8998 on the v36 network (--net dash-v36); a private
--network-id chain keeps 8999 (18999 on testnet).
Every node binary resolves its launch configuration in three layers
(src/core/settings_cli.hpp): compiled defaults (L0) < settings file (L1) <
command line (L2). The CLI always wins, even over a money-class key that the
file has acknowledged. The catalog of every key and its per-binary CLI spelling
is src/core/param_catalog.inc. Commented example files for c2pool-ltc, -dash,
-btc, -bch and -dgb, checked against the release binaries, are in
config/examples/.
| Flag | Binaries | Behaviour |
|---|---|---|
--settings PATH |
ltc, dash, btc, dgb, bch | Explicit settings-file path. The file must exist — a typo is fatal (exit 78), it never falls through silently. Omitted: <data-dir>/c2pool.toml is loaded if present, else the run is pure compiled+CLI. (settings_cli.hpp resolve_settings_path) |
--dump-resolved-config |
ltc, dash, btc, dgb, bch | Print the fully resolved config with the source of every key (compiled / file / CLI) between === RESOLVED CONFIG BEGIN === / END markers, then exit 0 without starting the node. Works with no coin endpoint configured. |
--ack-money-settings |
ltc, dash, btc, dgb, bch | Compute and print the money-ack hash for the resolved settings file, then exit. Requires a settings file (--settings PATH or the data-dir default); exit 78 otherwise. |
--data-dir PATH |
ltc, dash, btc, dgb, bch | Root all per-instance state (sharechain LevelDB, addr store, logs, …) under PATH (default ~/.c2pool). Handled before the settings probe, so the default c2pool.toml is looked up under the final data dir. Requires a non-empty, non-flag argument (exit 1 otherwise). |
--analytics-id ID |
ltc, dash, btc, dgb, bch, bip110 | Off by default. Google Analytics (GA4) page views, only after the visitor accepts the consent bar, with addresses and query strings stripped; the operator is responsible for the privacy notice. Settings key web.analytics_id ([<coin>.web] analytics_id, not on bip110, which reads no settings file); the CLI wins. See Google Analytics tag. |
Money gate. A settings file can never silently arm a money-class key
(MONEY_* rows in the catalog: fees, donation, payout addresses, network
identity, embedded.null_arm, …). A file that sets such a key without a
matching [gate].money_ack_hash is refused and the node exits 78 (EX_CONFIG)
before anything starts (src/core/settings_file.hpp). Run
--ack-money-settings to obtain the hash for the file as it stands, put it in
[gate].money_ack_hash, and the file is accepted; any later edit to a money key
invalidates the hash.
Off by default. Nothing is added to any page unless the operator sets
--analytics-id G-XXXXXXXXXX (or web.analytics_id in the settings file). Then
the node puts a Google Analytics (GA4) tag and a consent bar into the HTML pages
it serves (src/core/analytics_tag.hpp, one helper for every page).
- What is collected: GA4 page views only, and only after consent. Before a
visitor accepts there is no contact with Google at all: the page carries no
external script, and Google's script (
gtag.js) is not loaded, so not even the visitor's IP address or browser reaches Google, and no cookie is set. On Decline, or with no answer, it is never loaded. On Accept (or on a later visit after an Accept) the page creates the onegtag.jsscript element, with no referrer, then sets every Consent Mode type (analytics_storage,ad_storage,ad_user_data,ad_personalization) todenied, grantsanalytics_storage, and makes the config call (send_page_view: false) and the onepage_view. - Addresses and query strings are stripped. The page view carries an
explicit
page_location,page_path,page_referrerandpage_title, never the raw URL: the query string and fragment are dropped, and any path segment that holds 20 or more letters and digits in a row (an address), or follows a per-miner route, becomes:addr(/miner_payouts/<address>→/miner_payouts/:addr,/miner.html?address=<address>→/miner.html). The page's referrer policy isno-referrer, so no request carries the raw URL. - Consent bar. A small bar at the bottom reads "This site uses Google
Analytics cookies to count visits." with Accept and Decline. Accept
grants
analytics_storageonly (noad_*type is ever granted); Decline loads and sends nothing. The choice is kept in the browser'slocalStorage(c2pool_ga_consent) and the bar is not shown again. A page without</body>gets no bar, so it never loads or sends anything. - Never on
/control/*,/api/*(admin, config, tx-inject),/web/log,/logs/*, a request that carries a token, or a non-HTML response. A page without</head>, or one that already loadsgtag.js, is left unchanged. - Only a measurement ID. The value must be
G-followed by 4–20 upper-case letters or digits (the legacyUA-<digits>-<digits>form is also accepted). A bad command-line value refuses the start (non-zero exit); a bad settings-file value (also the LTC YAMLanalytics_id) is logged as a warning and ignored. - Pages. The dashboard's static
.html/.htmfiles (also on the Stratum port with--stratum-http) and the generated pages ofexplorer/explorer.py, which takes the same--analytics-id IDflag: pass it there too, since the explorer is a separate process. - The operator who enables it is responsible for their own privacy notice (and for the GA4 property's settings). Turn off Enhanced measurement in the GA4 web stream: otherwise GA adds its own events after consent, and an outbound-click event carries the link URL, which can hold an address.
c2pool-bip110 does not take --settings / --data-dir / --dump-resolved-config
(no BIN_BIP110 alias for those rows in param_catalog.inc); its money
defaults are seeded from the catalog and overridden only by CLI flags
(main_bip110.cpp main()).
--config FILE loads a YAML overlay on the LTC binary only. It is catalogued as
meta.config_yaml — "DEPRECATED legacy YAML config overlay"
(param_catalog.inc) — and is kept this release for byte-identical behaviour of
existing YAML deployments. If both a --config YAML and a TOML settings file
resolve, the TOML is skipped with a loud warning and the YAML wins for this
release (main_ltc.cpp, M0b wiring block). Migrate to the TOML settings file;
the YAML path will be removed.
# Legacy (LTC only, deprecated)
./c2pool --config config/c2pool_mainnet.yamlSee config/c2pool_mainnet.yaml (mainnet) and config/c2pool_testnet.yaml (testnet) for the legacy YAML key set.
| CLI flag | YAML key | Default | Description |
|---|---|---|---|
--version |
-- | Print c2pool-ltc <version> embedded=ltc,doge,nmc (the coins with an embedded node in this binary) and exit |
|
--integrated |
integrated |
true | Full P2P pool mode |
--solo |
solo |
false | Solo pool (no sharechain) |
--custodial |
custodial |
false | Custodial pool (single-address coinbase) |
--sharechain |
sharechain |
false | P2P node only (no mining) |
--standalone |
-- | false | Legacy solo (RPC daemon, no embedded SPV) |
--embedded-ltc |
embedded_ltc |
true | Embedded LTC SPV node |
--no-embedded-ltc |
Disable embedded LTC, use RPC daemon | ||
--embedded-doge |
embedded_doge |
true | Embedded DOGE SPV for merged mining |
--no-embedded-doge |
Disable embedded DOGE: no DOGE P2P connection or DNS seed lookup, also when a --merged DOGE:... RPC spec is given (DOGE is then mined over that RPC only) |
||
--net |
-- | litecoin | LTC-binary chain selector (--net CHAIN; alias --blockchain). Not the way to run DGB/BTC/BCH/DASH pools — those are separate binaries |
--testnet |
testnet |
false | Enable testnet mode |
--settings FILE |
-- | <data-dir>/c2pool.toml |
TOML settings file (all binaries; see above) |
--dump-resolved-config |
-- | -- | Print resolved config with sources, exit 0 |
--ack-money-settings |
-- | -- | Print the money-ack hash for the settings file, exit |
--config FILE |
-- | -- | Deprecated legacy YAML overlay (LTC only); takes precedence over TOML this release |
--address |
solo_address |
-- | Node operator payout address (optional) |
--give-author |
donation_percentage |
0.1 | Developer fee % (p2pool default: 0.5%) |
-f / --fee |
node_owner_fee |
0 | Node owner fee %: with that probability a job (decided when it is built, as p2pool does) is the owner's, on LTC and on every merged chain |
--node-owner-address |
node_owner_address |
-- | Node owner payout address |
--redistribute |
redistribute |
split | Mode: split/pplns/fee/boost/donate — where the shares of an empty, invalid or other-coin login (and of the job built before the login) go, on the parent and every merged chain (accepted, not refused; see Who is paid on a merged chain). split: 50% node owner / 50% donation (each such share pays the owner with donation 32768/65535); pplns without a node-owner address |
--merged SYMBOL:CHAIN_ID:HOST:PORT:USER:PASS[:P2P_PORT] |
merged |
DOGE:98 (embedded) | Merged-mined aux chain (repeatable) |
--merged-payout-address SYMBOL:ADDRESS |
merged_payout_addresses |
DOGE built-in | That chain's address for createauxblock (required for every RPC chain but DOGE; DGB and chains without address parameters are exempt); the node owner's address on that chain for its node-fee shares (chains other than DOGE) (repeatable) |
--node-owner-merged-address |
node_owner_merged_address |
-- | Node owner's DOGE address (alias --merged-operator-address, as in p2pool): the DOGE address written into the owner's own shares (node-fee shares, redistributed shares landing on the owner's key). Unset or not a DOGE address of the network: the owner's LTC key, converted (P2PKH/P2WPKH only; a P2SH --node-owner-address is not converted and the donation script is written, with a warning). It is not a payout-time redirect: peers derive the same payouts from the shares |
-n HOST:PORT |
seed_nodes |
-- | Sharechain seed peer (repeatable) |
--startup-mode |
startup_mode |
wait | Bootstrap: wait, genesis, auto |
--genesis |
Shortcut for --startup-mode genesis |
||
--wait-for-peers |
Shortcut for --startup-mode wait |
||
--header-checkpoint |
header_checkpoint |
mainnet default | LTC SPV starting point (HEIGHT:HASH) |
--doge-header-checkpoint |
doge_header_checkpoint |
mainnet default | DOGE SPV starting point |
--p2pool-port |
port |
9326 | P2P sharechain port |
-w / --worker-port |
stratum_port |
9327 | Stratum mining port |
--web-port |
web_port |
8080 | HTTP API / dashboard port |
--http-host |
http_host |
0.0.0.0 | HTTP bind address |
--stratum-http[=true|false|auto] |
stratum_http |
false | Also answer the read-only REST API on the stratum port (python p2pool parity); auto = on when the HTTP bind address is not loopback (the LTC stratum port binds the same address) |
--stratum-http-budget N |
stratum_http_budget |
16 | HTTP requests in progress on the stratum port at once, at most N and at most max_stratum_connections - 1; others are answered 503 (0 = every HTTP request on the stratum port is answered 503) |
--stratum-http-per-ip N |
stratum_http_per_ip |
6 | HTTP requests in progress on the stratum port at once from one address, one /64 for IPv6: at most N; others are answered 503 (0 = no limit below --stratum-http-budget) |
--stratum-tls [HOST:]PORT |
stratum_tls |
off | Second stratum listener speaking TLS (stratum+ssl://); PORT alone binds --http-host; same sessions and limits as the stratum port (see Ports) |
--stratum-tls-cert FILE |
stratum_tls_cert |
-- | PEM certificate chain (leaf first) for --stratum-tls; re-read with the key when either file changes and on SIGHUP |
--stratum-tls-key FILE |
stratum_tls_key |
-- | PEM private key for --stratum-tls (no passphrase) |
--stratum-tls-rate-per-ip R / --stratum-tls-burst-per-ip N |
stratum_tls_rate_per_ip / stratum_tls_burst_per_ip |
5 / 20 | TLS accepts a second from one address (IPv6 /64), and how many back to back (0 = no limit) |
--stratum-tls-handshakes N / --stratum-tls-handshakes-per-ip N |
stratum_tls_handshakes / stratum_tls_handshakes_per_ip |
32 / 8 | TLS handshakes in progress at once, in total and from one address (0 = no limit) |
--coind-address |
ltc_rpc_host |
127.0.0.1 | Coin daemon RPC host |
--coind-rpc-port |
ltc_rpc_port |
auto | Coin daemon RPC port |
--rpcuser |
ltc_rpc_user |
-- | RPC username |
--rpcpassword |
ltc_rpc_password |
-- | RPC password |
--max-conns |
-- | 8 | Target outbound P2P peers |
--stratum-min-diff |
min_difficulty |
0.0005 | Vardiff floor |
--stratum-max-diff |
max_difficulty |
65536 | Vardiff ceiling |
--stratum-target-time |
target_time |
3.0 | Seconds between pseudoshares |
--no-vardiff |
vardiff_enabled |
true | Disable auto-difficulty |
--max-coinbase-outputs |
max_coinbase_outputs |
4000 | Max coinbase outputs |
--max-stratum-connections |
max_stratum_connections |
100 | Max concurrent miners on this node (0 = unlimited) |
--max-stratum-connections-per-ip |
max_stratum_connections_per_ip |
0 | Max concurrent miners from one IP address (0 = unlimited). An IPv6 address counts by its /64, since one host can be handed a whole /64. Rigs behind one NAT share an address, so set it to at least the most rigs behind any one address. |
--network-id |
network_id |
0 | Private chain identifier (hex) |
--v3601-activation-time |
sharechain.v3601_activation_time |
compiled | Share version 3601 flag day, unix time — testnet or a private --network-id chain only (see Share version 3601) |
--log-level |
log_level |
trace | trace/debug/info/warning/error |
--log-file |
log_file |
debug.log | Log filename |
--log-rotation-mb |
log_rotation_size_mb |
100 | Log rotation threshold (MB) |
--log-max-mb |
log_max_total_mb |
1000 | Total size cap across all rotated log files (MB) |
--p2p-max-peers |
p2p_max_peers |
30 | Max total P2P peers |
--ban-duration |
ban_duration |
300 | P2P ban duration (seconds) |
--rss-limit-mb |
rss_limit_mb |
5000 | RSS memory abort limit (MB) |
--cors-origin |
cors_origin |
-- | CORS Allow-Origin header |
--payout-window |
payout_window_seconds |
86400 | PPLNS window (seconds) |
--storage-save-interval |
storage_save_interval |
300 | Sharechain save interval |
--dashboard-dir |
dashboard_dir |
web-static | Static dashboard directory |
--analytics-id |
analytics_id |
-- (off) | Google Analytics measurement ID (G-XXXXXXXXXX): GA4 page views after the visitor accepts the consent bar, addresses and query strings stripped (see Google Analytics tag); TOML web.analytics_id |
| -- | address_explorer_prefix |
Blockchair | Custom address explorer URL prefix |
| -- | block_explorer_prefix |
Blockchair | Custom block explorer URL prefix |
| -- | tx_explorer_prefix |
Blockchair | Custom tx explorer URL prefix |
| -- | explorer |
false | Enable lite block explorer (stores recent blocks + REST API) |
| -- | explorer_url |
-- | Explorer URL injected into dashboard nav (e.g. http://localhost:9090) |
| -- | explorer_depth_ltc |
288 | LTC blocks to keep in explorer store |
| -- | explorer_depth_doge |
1440 | DOGE blocks to keep in explorer store |
--coinbase-text |
coinbase_text |
see below | Custom coinbase scriptSig text |
--message-blob-hex |
-- | -- | V36 authority message blob |
--doge-testnet4alpha |
doge_testnet4alpha |
false | Use DOGE testnet4alpha |
--import-found-blocks FILE (repeatable, or A,B) |
import_found_blocks (path or list) |
-- | Restore the pool's found-block history from another node's /recent_blocks and /recent_merged_blocks (see Restore found-block history) |
Each parent chain ships as its own binary with its own hand-written argv parser.
The tables below are transcribed from those parsers on master — the --help
text of some binaries lags the parser, so the parser is the source of truth
cited here (src/c2pool/main_<coin>.cpp; canonical key names in
src/core/param_catalog.inc). The --settings / --dump-resolved-config /
--ack-money-settings / --data-dir control-plane flags are described once
under Settings file (TOML) and only
listed here.
Common conventions:
[HOST:]PORT— a bare port binds0.0.0.0;HOST:PORTbinds one interface.- Stratum and the web dashboard are off unless bound on
btc,dgb,bchanddash(--stratum/--http; DASH's dashboard is the exception and is on at 8080 by default).bip110binds Stratum on 9336 by default. - Unknown flags:
dash,btc,dgb,bchreject them with a non-zero exit;bip110silently ignores them (its parse loop has no trailingelse). - Coin-daemon RPC credentials are never taken on argv: every
--coin-rpc-auth/--rpc-confpoints at abitcoin.conf-style file.
| Binary | Sharechain P2P | Stratum | Web dashboard | Coin P2P (embedded) |
|---|---|---|---|---|
c2pool-ltc |
9326 (--p2pool-port) |
9327 (-w) |
8080 (--web-port) |
embedded LTC + DOGE SPV (DNS seeds) |
c2pool-btc |
9333 (--sharechain-port) |
off (--stratum) |
off (--http) |
8333 (--coin-p2p-discover) |
c2pool-dgb |
5024 (--sharechain-port) |
off (--stratum) |
off (--http) |
12024 (--coin-p2p-discover / --coin-daemon) |
c2pool-bch |
9349 (fixed) | off (--stratum) |
off (--http) |
8333 (--peer, or seed ladder when --peer port is 0) |
c2pool-dash |
8999 mainnet / 18999 testnet (--listen) |
off (--stratum) |
8080 (--web-port; 0 disables) |
9999 (--coin-p2p-connect / --coin-p2p-discover) |
c2pool-bip110 |
9337 (--bip110-sharechain to enable) |
9336 (--no-stratum to disable) |
off (--http) |
8333 (--peer / --coin-p2p-discover) |
Sources: src/impl/{btc,dgb,bch,dash}/config_pool.hpp P2P_PORT;
src/impl/bip110/params.hpp SHARECHAIN_P2P_PORT / SHARECHAIN_WORKER_PORT /
COIN_P2P_PORT; each main_<coin>.cpp local-variable defaults.
Source: src/c2pool/main_dash.cpp — print_banner() (usage text) and the
main() parse loop. Unknown argument → unknown argument: …, exit 1.
# Daemonless public pool (the dash.voidbind.com posture, no dashd on the host)
./c2pool-dash --run --data-dir /var/lib/c2pool/dash \
--coin-p2p-discover --coin-p2p-peers 8 \
--listen 0.0.0.0:8999 --addnode <sharechain-peer>:8999 \
--stratum 0.0.0.0:7903 --web-host 127.0.0.1 --web-port 8082 \
--dashboard-dir /opt/c2pool/web-static \
--node-owner-address <your-DASH-address>
# dashd-attached (reward-safe fallback arm kept; creds read from dash.conf)
./c2pool-dash --run --coin-rpc 127.0.0.1:9998 --coin-rpc-auth ~/.dashcore/dash.conf \
--stratum 3335A bare --run with no --coin-rpc is the daemonless posture: every
embedded serving lever below defaults ON ("ALL embedded serving levers default
ON when NO dashd arm is given", banner text; resolver
src/impl/dash/coin/good_citizen_defaults.hpp). With --coin-rpc given, the
node is dashd-attached and the --embedded-* levers default OFF unless named.
Only the daemonless trust anchor applies to a daemonless node — see
DASH daemonless masternode-set checkpoint.
Modes and control plane
| Flag | Meaning |
|---|---|
--run |
Stand up the node (sharechain peer, coin feed, Stratum, web). Without it the binary runs the self-test and exits. |
--selftest |
Accepted explicitly; same as the default path. |
--version / --help |
Print and exit. |
--data-dir PATH, --settings PATH, --dump-resolved-config, --ack-money-settings |
Control plane, see Settings file. |
--testnet / --regtest |
Both set the testnet flag (the parser treats them identically). Sharechain port becomes 18999. |
--mine-block [--payout-pubkey-hash HEX] [--max-nonce N] |
One-shot CPU miner harness. |
--submit-block HEX / --submit-block-file PATH |
Drive one real submitblock through the dashd arm, then exit. |
--replay-utxo-db PATH [--replay-utxo-hash] [--replay-utxo-expect HEX] |
Standalone UTXO-fold utility; runs and exits, never serves. |
--dump-mn-checkpoint H FILE |
Write the self-derived masternode set at height H as a checkpoint .inc; two arguments. |
Coin daemon arm (optional)
| Flag | Default | Meaning |
|---|---|---|
--coin-rpc H:P (alias --coin-daemon) |
none = daemonless | dashd RPC endpoint. Endpoint only, no secret. |
--coin-rpc-auth PATH |
~/.dashcore/dash.conf |
dash.conf with rpcuser/rpcpassword. |
--coin-zmq-hashblock tcp://H:P |
off | Subscribe to dashd ZMQ hashblock for instant tip refresh on the fallback arm (needs zmqpubhashblock in dashd). |
--embedded-oracle-shadow, --oracle-graduation-blocks N (5000), --oracle-class-coverage K (20) |
off | Observe-only per-block dashd cross-check + graduation ledger. Needs the RPC arm. |
--embedded-shadow-compare |
off | Observe-only served-template vs getblocktemplate diff on a worker thread. No-op without dashd. |
--embedded-no-dashd-mn-seed [--embedded-fold-only-proof] |
off | Cut the protx list payee seed while keeping dashd for observation (cut rehearsal); the second flag also leaves the checkpoint bridge unarmed. |
Sharechain and coin P2P
| Flag | Default | Meaning |
|---|---|---|
--listen [HOST:]PORT |
0.0.0.0:8999 |
Sharechain (pool P2P) bind. |
--addnode H:P (repeatable) |
— | Persistent outbound sharechain peers. |
--connect H:P (repeatable) |
— | Connect-only sharechain peers. |
--net dash-v36 |
off (v16 sharechain) | Join the DASH v36 network: share v36 only, P2P port 8998. Mainnet only; cannot be combined with --network-id, --prefix or --testnet. |
--network-id HEX [--prefix HEX] |
the public p2pool-dash identity | Private sharechain identifier (hex, 1–8 bytes) and prefix. A custom id never dials public seeds and keeps its state in its own <data-dir> subdirectory; --prefix requires --network-id. |
--no-p2p-relay |
off | Suppress the embedded won-block P2P relay (isolates the RPC submit arm). |
--coin-p2p-connect H:P (repeatable) |
— | Pin explicit DASH coin-network peers (port 9999). |
--coin-p2p-discover |
off | Seed-based (dnsseed.dash.org + fixed), scored, group-diverse coin-peer discovery — the network-standalone arm. Pinned peers are kept alongside. |
--coin-p2p-peers N |
8 (cap 16) | Concurrent coin-network peers held. An evidence knob: qfcommit/clsig are announced once, so more peers = lower miss probability. |
--coin-p2p-magic HEX |
mainnet bf0c6bbd |
Wire-magic override (testnet cee2caff, regtest fcc1b7dc). |
--embedded-fresh-datum-race[=false], --embedded-fresh-datum-race-k N (2) |
off (fresh_datum_race.hpp: static bool f = false; the catalog help string says "default ON" — the code is authoritative) |
Race the freshest getmnlistd to K distinct netgroups; fold the first self-checked reply. |
--embedded-getmnlistd-tracker[=false] |
off (getmnlistd_tracker.hpp: static bool f = false; same catalog/code mismatch) |
Fixed 10 s per-slot re-ask tracker for the MnListDiff class. |
--embedded-asn-diversity[=false] |
off | Require the racing set to span ≥2 ASNs. |
--embedded-peer-latency-score[=false] |
off | Latency tie-breaker inside the eligible peer set. |
--embedded-proactive-rotate |
off | Low-rate proactive coin-peer rotation (default is stall-only). |
--embedded-compact-blocks[=false] |
on | BIP 152 compact-block receive: a new tip body is asked for as getdata(MSG_CMPCT_BLOCK) and rebuilt from the mempool. =false fetches every body whole. |
Embedded serving levers (all daemonless-default ON, =false opts out;
dashd-attached default OFF)
| Flag | Meaning |
|---|---|
--embedded-mainnet[=false] |
The arm gate: serve embedded templates on mainnet and arm the coin-state feed. =false on a mainnet node serves only the dashd fallback. |
--embedded-utxo[=false] |
Embedded UTXO / fee lane. |
--embedded-null-arm[=false] |
Optimistic null quorum commitment at fresh window-open slots, freshness-gated (#127). |
--embedded-superblock[=false] |
Daemonless superblock payee sourcing via govsync. |
--embedded-govsync |
Observe-only governance store (inv 17/18 pull). Does not arm serving by itself. |
--embedded-serve-mempool-txs[=false] |
Serve fee-carrying templates from the embedded mempool. |
--embedded-tx-serve-own-set[=false] |
Serve-time self-validation referee. |
--embedded-mempool-ingest[=false] |
Coin-P2P MSG_TX pull (fills the mempool). |
--embedded-ingest-isdlock[=false] |
MSG_ISDLOCK feed (InstantSend conflict locks, BLS-gated). |
--embedded-ingest-dstx[=false] |
CoinJoin DSTX lane. |
--embedded-include-mn-special-txs[=false] |
DIP special-tx superset (types 1–4). |
--embedded-include-v24-provider-txs[=false] |
Dash Core v24 provider types 10–12 (ProDisTx, ProUpShareTx, ProUpSharedRegTx) and v3 (ExtAddr) ProTx payloads of types 1–4, including shared registrations, with the superset, from v24 activation. Default ON in both postures; =false keeps them out, v1/v2 ProTx unaffected. |
--embedded-accrue-asset-locks[=false] / --embedded-accrue-asset-unlocks[=false] |
Type-8 / type-9 asset-lock/unlock fold. |
--embedded-utxo-immature-serve-empty |
Serve coinbase-only until the UTXO view is mature. |
--embedded-creditpool-publish-at-serve-tip |
Publish the derived credit pool at the serve tip (money path, default OFF). |
--embedded-mined-commitment-index |
Arm the mined-commitment store on live tips. |
--embedded-mn-bridge-max N |
Max blocks the pinned masternode anchor (or, on a resume, the persisted cursor) may lag the tip before the bridge refuses it as stale (default 40000, ≈69 days, mn_checkpoint_lane.hpp). |
--embedded-mn-bridge-no-cursor |
Replay the whole window from the anchor on every start instead of resuming the saved cursor. |
--embedded-fold-live PATH + --embedded-fold-live-expect HASH, --embedded-fold-checkscripts |
Wire a full-history UTXO fold store as the live input-pricing view (store hash must match); consensus-exact input-script check. |
--embedded-utxo-fold-fees DBPATH + --embedded-utxo-fold-expect HEX |
Graduated fold fee pricing; both required together. |
--bestcl-policy consensus-exact|freshness |
How the bestCL gate decides: consensus-exact (default) is dashcore's CheckCbTxBestChainlock rule; freshness is the stricter rollback proxy. |
--serve-staleness-sentinel[=off] |
Report-only served-height staleness detector, ON by default; =off/=0/=false disables. |
--serve-gate-state-file PATH |
Cross-restart serve-gate accounting (soak convenience). |
--regtest-force-won-block |
Regtest-only: drive one won block through the dual-path dispatch. |
Transactions, replay, checkpoints
| Flag | Meaning |
|---|---|
--embedded-tx-inject, --embedded-tx-inject-hex FILE |
Opt-in miner/user tx injection (#157), default OFF. Runtime arming and submit: see Runtime transaction injection above. |
--control-plane-token-file FILE |
Registers the loopback control token (0600, owner-only, 32-128 chars) that unlocks /api/config/apply and /api/tx-inject/submit. Absent: apply answers 503, submit 403. |
--pin-local-tx-hex FILE, --pin-splice-xcheck-arm, --pin-splice-block-budget |
Pin a zero-fee self-mined tx (e.g. donation consolidation) into served templates; splice policy knobs default OFF. |
--replay-bulk, --replay-bulk-capture DIR, --replay-bulk-start H |
Full-history bulk block-fetch lane from DIP3 (1028160); capture caches bodies. |
--replay-fold-prestate FILE, --replay-fold-quorums, --replay-fold-qsnapshot FILE, --replay-fold-worklists FILE |
Anchor-seeded DML fold driven by the bulk lane, with derived quorum member sets. |
--replay-mnlist-seed-height H --replay-mnlist-seed-source getmnlistdiff --replay-mnlist-seed-file FILE |
Optional V20 getmnlistdiff seed instead of deriving from DIP3 (implies --replay-bulk). |
--replay-mined-commitment-index |
Mined-commitment store fed from replay. |
--embedded-utxo-snapshot FILE (alias --utxo-snapshot), --embedded-utxo-snapshot-pin PINFILE |
Full UTXO set: import a pinned dumptxoutset into <net>/utxo_full_leveldb at start, then connect strictly from its base. |
--embedded-utxo-full=false |
Open the accrual view instead of the full UTXO set. |
--utxo-import FILE[,PART...] [--embedded-utxo-snapshot-pin PINFILE] |
Import into <data-dir>/<net>/utxo_full_leveldb and exit; the next start opens it. |
--embedded-credit-pool-seed |
Seed the credit-pool follower from the v20 height over coin P2P. |
--dash-v24-activation-height N |
Emergency pin of the Dash Core v24 activation height (a window boundary). It decides only where the versionbits/EHF tracker cannot, and the node fails closed where they disagree. |
Web, money, misc
| Flag | Default | Meaning |
|---|---|---|
--stratum [HOST:]PORT |
off | Miner-facing Stratum listener. |
--web-port PORT (alias --http-port) |
8080 | Dashboard + JSON API; 0 disables. If it collides with the Stratum port it moves to stratum+1. |
--web-host ADDR |
0.0.0.0 |
Dashboard bind interface. |
--stratum-http[=true|false|auto] |
false | Also answer the read-only JSON API on the Stratum port (python p2pool parity); auto = on when --web-host is ::, is 0.0.0.0 with an IPv4 Stratum bind, or is the same non-loopback address as the Stratum bind. |
--stratum-http-budget N |
16 | HTTP requests in progress on the Stratum port at once, at most N and at most max_stratum_connections - 1; others are answered 503 (0 = every HTTP request on the Stratum port is answered 503). |
--stratum-http-per-ip N |
6 | HTTP requests in progress on the Stratum port at once from one address, one /64 for IPv6: at most N; others are answered 503 (0 = no limit below --stratum-http-budget). |
--stratum-tls [HOST:]PORT |
off | Second Stratum listener speaking TLS (stratum+ssl://); PORT alone binds the --stratum host; same sessions and limits as the Stratum port (see Ports). Needs the two flags below. |
--stratum-tls-cert FILE |
— | PEM certificate chain (leaf first); re-read with the key when either file changes and on SIGHUP. |
--stratum-tls-key FILE |
— | PEM private key (no passphrase). |
--stratum-tls-rate-per-ip R, --stratum-tls-burst-per-ip N |
5, 20 | TLS accepts a second from one address (IPv6 /64), and how many back to back (0 = no limit). |
--stratum-tls-handshakes N, --stratum-tls-handshakes-per-ip N |
32, 8 | TLS handshakes in progress at once, in total and from one address (0 = no limit). |
--dashboard-dir PATH |
web-static |
Static dashboard root. |
--analytics-id ID |
off | GA4 page views after the visitor accepts the consent bar, addresses and query strings stripped (Google Analytics tag); settings key web.analytics_id. |
--external-ip ADDR (aliases --stratum-advertise, --public-host) |
auto-detect | Miner-facing host shown in the dashboard Stratum URL (NAT). |
--explorer / --no-explorer |
on | Loopback-only /api/explorer surface + raw-block retention. |
--give-author PCT (alias --dev-donation) |
0.1 | Author donation percent. |
-f / --fee PCT |
0 | Node-owner fee percent. |
--node-owner-address ADDR |
— | Fee destination. |
--redistribute split|pplns|fee|boost|donate |
split |
Where the shares of a login with no usable (P2PKH) payout address go. split: 50% node owner / 50% donation (the share pays --node-owner-address with donation 32768/65535); pplns without a usable --node-owner-address. |
--coinbase-text TEXT |
/P2Pool-DASH/c2pool/ |
Coinbase scriptSig text, max 64 bytes (see Coinbase structure). |
--message-blob-hex HEX (alias --transition-message) |
— | Encrypted authority message blob. |
--deferred-mint / --no-deferred-mint |
off | A share solved while the tracker is busy is minted at the next free lock instead of being declined. |
--mempool-entry-probe |
off | Wire the direct-local GET /mempool_entry?txid= probe. |
--allow-stub-bls |
off | Run a bls=stub build in a configuration that relies on BLS. Testing only, never in production (see the BLS section above). |
Alert relay: see c2pool-dash --help.
Source: src/c2pool/main_btc.cpp — print_usage() and the main() parse
loop. Unknown argument → unknown arg: … + usage, exit 1. A coin source is
mandatory: without --bitcoind or --coin-p2p-discover the binary prints
usage and exits 1.
# Daemonless public pool (btc.voidbind.com posture)
./c2pool-btc --data-dir /var/lib/c2pool/btc --coin-p2p-discover \
--http 127.0.0.1:8083 --stratum 0.0.0.0:9334 \
--fee 0.1 --node-owner-address <your-BTC-address> --give-author 0
# Against a local bitcoind P2P port, with the submitblock RPC backup
./c2pool-btc --bitcoind 127.0.0.1:8333 --coin-rpc 127.0.0.1:8332 \
--coin-rpc-auth ~/.bitcoin/bitcoin.conf --stratum 9332| Flag | Default | Meaning |
|---|---|---|
-h / --help |
Usage and exit 0. | |
--version |
Print c2pool-btc <version> and exit 0. |
|
--data-dir PATH, --settings PATH, --dump-resolved-config, --ack-money-settings |
Control plane, see Settings file. --dump-resolved-config runs before the mandatory-coin-source check, so it works with no endpoint. |
|
--testnet / --testnet4 / --regtest |
mainnet | Chain selection (testnet4 also sets the testnet flag). |
--bitcoind HOST:PORT |
— | bitcoind P2P endpoint (8333 / 18333 / 48333 testnet4 / 18443 regtest). Required unless --coin-p2p-discover. |
--coin-p2p-discover |
off | BTC-isolated scored, group-diverse coin-peer discovery (DNS + fixed + HTTP seeds); streams headers with no bitcoind. |
--p2pool HOST:PORT |
— | Single BTC p2pool peer; folds into --sharechain-addnode as an exclusive target. |
--sharechain-addnode HOST:PORT (repeatable) |
— | Explicit sharechain peers. When given, the public seed list is not dialed and the saved addr book is reset. |
--sharechain-port P |
9333 | Sharechain listener port (second instance on one host). |
--network-id HEX (≤8 bytes), --prefix HEX |
public BTC | Private sharechain identifier / prefix — two independent constants. Setting --network-id alone also suppresses the public seed list. |
--stratum [HOST:]PORT |
off | Stratum listener. |
--http [HOST:]PORT |
off | Operator dashboard (web-static relative to the working directory; parser only — not in the --help text). |
--analytics-id ID |
off | GA4 page views of the --http pages after the visitor accepts the consent bar, addresses and query strings stripped (Google Analytics tag); settings key web.analytics_id. |
--coin-rpc HOST:PORT |
— | submitblock RPC backup endpoint (no secret on argv). |
--coin-rpc-auth PATH |
~/.bitcoin/bitcoin.conf |
rpcuser/rpcpassword file for the backup. Omit both to run daemonless. |
--merged SYMBOL:CHAIN_ID:HOST:PORT:USER:PASS[:P2P_PORT] (repeatable) |
— | Embedded merged-mined aux chain (NMC under BTC). |
-f / --fee PCT |
0 | Node-owner fee as a committed payout-identity substitution (not a separate output). Requires --node-owner-address. |
--node-owner-address ADDR |
— | Fee destination (P2PKH/P2SH/P2WPKH). Undecodable → fee disabled. |
--give-author PCT (alias --dev-donation) |
0.1 (core::kAuthorFeeDefaultPct) |
Donation amount only; 0 allowed (dust-marker output still emitted). The donation script is never changed. |
--import-found-blocks FILE (repeatable, or A,B) |
— | Restore the pool's found-block history from another node's /recent_blocks or a list of block hashes, each validated against the embedded BTC header chain; needs --http (see Restore found-block history). The ledger is kept across restarts in <data-dir>/bitcoin/found_blocks_db (bitcoin_testnet, bitcoin_testnet4, bitcoin_regtest on the test networks). |
Source: src/c2pool/main_dgb.cpp — print_banner() and the main() parse
loop. Unknown argument → unknown argument: …, exit 1. Mainnet only: there
is no --testnet flag and make_coin_params(/*testnet=*/false) is hardwired;
a settings file that sets network.testnet is refused. Operator payout goes
through -f/--fee or --redistribute, with --node-owner-address as the
destination.
# Daemonless public pool (dgb.voidbind.com posture)
./c2pool-dgb --run --coin-p2p-discover --data-dir /var/lib/c2pool/dgb \
--http 127.0.0.1:8084 --stratum 0.0.0.0:9434 \
--sharechain-port 5024 --sharechain-addnode 92.53.224.27:5024| Flag | Default | Meaning |
|---|---|---|
--version / --help |
Print and exit. | |
--data-dir PATH, --settings PATH, --dump-resolved-config, --ack-money-settings |
Control plane, see Settings file. | |
--run |
Stand up the run-loop (io_context + sharechain peer + Stratum). Without it (or with --selftest) the binary runs the self-test and exits. |
|
--stratum [HOST:]PORT |
off | Stratum listener. |
--http [HOST:]PORT |
off | Dashboard + stats persistence (web-static relative to the working directory). |
--analytics-id ID |
off | GA4 page views of the --http pages after the visitor accepts the consent bar, addresses and query strings stripped (Google Analytics tag); settings key web.analytics_id. |
--sharechain-port P |
5024 | Sharechain listener port. |
--sharechain-addnode HOST:PORT (repeatable) |
public defaults | Pin sharechain peers; suppresses the default bootstrap list. 92.53.224.27:5024 is the live public DGB sharechain seed named in the source. |
--coin-p2p-discover |
off | DGB-isolated scored, diverse coin-peer discovery — daemonless. |
--coin-daemon HOST:PORT |
— | Explicit embedded coin-P2P producer target (a digibyted P2P port). |
--coin-magic HEX, --coin-genesis HASH |
mainnet | Wire-magic / genesis overrides (regtest). |
--coin-rpc HOST:PORT, --coin-rpc-auth PATH |
— | External digibyted submitblock arm; creds stay in digibyte.conf. |
--regtest, --regtest-force-won-share |
off | Regtest marker; forced won share is refused unless --regtest and --coin-daemon are both given. |
--no-p2p-relay |
off | Suppress the embedded won-block relay (isolates the RPC arm). |
--dev-relax-algo-softforks |
off | Dev-only: relax the algo-softfork readiness gate for an isolated tuned testnet; ignored on mainnet. |
--redistribute SPEC |
pplns |
pplns|fee|boost|donate or hybrid boost:70,donate:20. split is not available on DGB yet: a spec naming it is warned about and binds no policy. |
--node-owner-address ADDR |
— | Operator payout identity for the fee arm and for -f/--fee. |
-f / --fee PCT |
0 | Node-owner fee percent; needs --node-owner-address. |
--give-author PCT (alias --dev-donation) |
0.1 | Author donation percent. |
--merged SYMBOL:CHAIN_ID[:HOST:PORT:USER:PASS[:P2P_PORT]] (repeatable) |
— | Embedded DOGE aux backend (-DAUX_DOGE build; DOGE chain_id 98, P2P 22556). |
--doge-p2p-address HOST, --doge-p2p-port PORT, --embedded-doge |
— | DOGE peer overrides; --embedded-doge forces the embedded path. |
--embedded-serve-mempool-txs[=true|=false] |
posture default | Arm / opt out of the embedded UTXO fee-proof lane. CLI wins over the settings file. |
Source: src/c2pool/main_bch.cpp — print_banner() and the main() parse
loop. Unknown argument → unknown argument: …, exit 1. The pool mode is
--pool; the other modes are harnesses.
# Daemonless public pool (bch.voidbind.com posture): --peer with port 0 means
# "no explicit BCHN peer" and turns on the DNS/fixed/HTTP seed ladder
./c2pool-bch --pool --peer 0.0.0.0:0 --data-dir /var/lib/c2pool/bch \
--http 127.0.0.1:8085 --stratum 0.0.0.0:9534 \
--sharechain-addnode 92.53.224.27:9349| Flag | Default | Meaning |
|---|---|---|
--version / --help |
Print and exit (help prints the banner after the settings probe). | |
--data-dir PATH, --settings PATH, --dump-resolved-config, --ack-money-settings |
Control plane, see Settings file. | |
--pool |
Pool run-loop: embedded daemon + sharechain + Stratum. | |
--selftest |
default | ABLA budget self-test, exit. |
--ibd [--near-tip] [--auto-kick], --with-peer-verify, --max-seconds N (600) |
Headers-first IBD / peer-verify harnesses against one BCHN peer. | |
--leg-c-capture [--rpc-conf PATH], --leg-c-capture-p2p [--p2p-port N] (18444) |
Regtest capture harnesses; --rpc-conf defaults to ~/bch-regtest/bitcoin.conf here. --p2p-port is the leg-C BCHN regtest port, not the sharechain port (the catalog maps it to sharechain.listen; the parser does not). |
|
--peer HOST[:PORT] |
none (port 8333) | BCHN coin-P2P peer. --pool refuses to start without --peer or --coin-p2p-discover. Port 0 = no explicit peer → SeedTier discovery ladder (src/impl/bch/coin/embedded_daemon.hpp maybe_start_p2p). |
--testnet / --testnet4 / --regtest |
mainnet | Chain selection; also moves the default peer port (18333 / 28333 / 18444). |
--anchor N |
0 | Cold-start ABLA floor anchor height. |
--stratum [HOST:]PORT |
off | Stratum listener. |
--http [HOST:]PORT |
off | Dashboard. |
--analytics-id ID |
off | GA4 page views of the --http pages after the visitor accepts the consent bar, addresses and query strings stripped (Google Analytics tag); settings key web.analytics_id. |
--rpc-conf PATH |
— | BCHN bitcoin.conf for the external-RPC fallback (rpcuser/rpcpassword; endpoint is 127.0.0.1:<rpcport>). |
--coin-p2p-discover |
off | Daemonless coin-peer discovery (CoinAddrMan); no --peer needed. |
--sharechain-addnode HOST:PORT (repeatable) |
public defaults | Pin sharechain peers (92.53.224.27:9349 is the live public BCH sharechain seed named in the source). |
--give-author PCT (alias --dev-donation) |
0.1 | Author donation percent. |
-f / --fee PCT |
0 | Node-owner fee percent; needs --node-owner-address. |
--node-owner-address ADDR |
— | Node-owner fee destination. |
Source: src/c2pool/main_bip110.cpp — print_banner() and the main() parse
loop. Unknown flags are ignored silently (no trailing else), and the
binary takes no --data-dir / --settings / --dashboard-dir: the dashboard
is served from web-static relative to the working directory
(web_server->set_dashboard_dir("web-static") in run_embedded), so deploy a
web-static copy next to the binary and start it from that directory.
# Public fork pool (bip110.voidbind.com posture)
cd /opt/c2pool-bip110 && ./c2pool-bip110 --run --coin-p2p-discover \
--coin-externalip <your-public-ip> --fork-checkpoint \
--http 127.0.0.1:8086 --stratum 9336 --serve-mempool-txs \
--give-author 0.1 --fee 0 --node-owner-address <your-BTC-address> \
--bip110-sharechain --explorer| Flag | Default | Meaning |
|---|---|---|
--version, -h / --help |
Print and exit. | |
--run |
Embedded daemonless BLAKE2b fork follower + Stratum. Without it (or with --selftest) the KAT self-test runs and exits. If neither --coin-p2p-discover nor --peer is given, discovery is switched on automatically. |
|
--coin-p2p-discover |
auto with --run |
Discover NODE_BLAKE2B fork peers (DNS + fixed seeds). |
--peer IP[:PORT] (repeatable) |
port 8333 | Explicit fork peer. |
--coin-externalip IP |
peer-echo auto | Operator-pinned reachable IP for self-advertisement (bare IP; port 8333 substituted). |
--fork-checkpoint |
off | Seed the Knots 961640 checkpoint for a fast proof. |
--http [HOST:]PORT |
off | Shared coin-generic dashboard (/, /node_info, /api/node_topology, /broadcaster_status). |
--analytics-id ID |
off | GA4 page views of the --http pages after the visitor accepts the consent bar, addresses and query strings stripped (Google Analytics tag); command line only (no settings file). |
--stratum [HOST:]PORT / --no-stratum |
0.0.0.0:9336 on |
Stratum listener; --no-stratum disables. |
--serve-mempool-txs / --no-serve-mempool-txs |
on | Include real network txs in served templates (M3 good-citizen); the --no- form is the coinbase-only escape hatch. |
--bip110-sharechain |
off | Arm the M3 sharechain mint on :9337 and dial the federation sharechain. First outbound is irreversible (params-freeze checkpoint). Absent → M2 header-follower only. |
--sharechain-addnode HOST:PORT (repeatable) |
beacon list | Override the default sharechain bootstrap beacons. |
--explorer / --no-explorer |
on | Loopback-only /api/explorer + raw-block retention. |
--node-owner-address ADDR (alias --donation) |
— | Node-owner fee destination and subsidy fallback when a miner's username has no resolvable address. |
--give-author PCT (alias --dev-donation) |
0.1 (catalog money.give_author_pct) |
Author donation percent. |
-f / --fee PCT |
0 | Node-owner fee percent. |
A node's found-block ledger only holds the blocks the node saw itself, so a
node that joined the pool late (or lost its found_blocks_db) shows a short
Recent Blocks list, and its luck and effort start from there. The pool's
history is on every other node. To bring it in (c2pool-ltc):
# 1. Take the history from any node of the pool (its dashboard / web URL):
# the LTC blocks, and the merged (DOGE) blocks.
curl -s https://ltc.voidbind.com/recent_blocks -o blocks.json
curl -s https://ltc.voidbind.com/recent_merged_blocks -o merged.json
# 2. Start your node once with both files, imported in this order:
./c2pool-ltc <your usual options> \
--import-found-blocks blocks.json --import-found-blocks merged.json--import-found-blocks may be given more than once or as a comma list
(--import-found-blocks blocks.json,merged.json); in the legacy YAML,
import_found_blocks: [blocks.json, merged.json] or a single path. Any node of
the pool will do: http://<node>:<web-port>/recent_blocks (8080 by default).
Each file is checked when the options are read, at its canonical path (a
symlink is followed to its target, which must be a regular file): a missing
or unreadable file, a directory, a device or FIFO, a value that is another
option (--import-found-blocks --testnet), a second file without its own
flag, or a file above 64 MiB or 100,000 entries stops the node at once with
an error (exit 1).
The import runs at startup, after the embedded header chains are synced (it waits for the sync and says so in the log). Each file gets a summary line, then the run a total, counted per chain:
found-block import merged.json: 9 rows: imported 8 (DOGE 8), ..., rejected 1 (DOGE: below_header_chain=1); ...
found-block import DONE (2 files): 15 rows: imported 12 (DOGE 8, LTC 4), ..., rejected 3 (DOGE: below_header_chain=1; LTC: not_on_chain=2); ...
It is safe to run again: a block the ledger already holds only gains the fields it lacks, nothing the node recorded itself is replaced. There is no HTTP write endpoint for this, on purpose.
What gets in:
- Only blocks of their chain. Each row's hash must be on the best chain of
the node's own header chain for that chain: LTC rows against the embedded LTC
header chain, merged (DOGE) rows from
/recent_merged_blocksagainst the embedded DOGE header chain. Height, time and difficulty are then taken from that header (a wrong height in the file is repaired). A hash the chain does not hold (not_on_chain), a side-branch block (not_main_chain), another chain's row (other_chain), a duplicate and a malformed entry are refused and counted against the chain they name. Blocks below a header chain's starting checkpoint cannot be checked and are skipped asbelow_header_chainof that chain: LTC below--header-checkpoint(by default 3,088,000), DOGE below--doge-header-checkpoint(by default 6,160,000). Merged rows on a node without the embedded DOGE header chain aremerged_unvalidated. - Pool blocks on the source's word. Where the node still has the block's
body (the lite explorer's recent blocks) its coinbase must pay the p2pool
donation script (
not_pool_blockotherwise). For older blocks it cannot be checked, and the row says where it came from:"provenance": "imported"on/recent_blocks(andfound_locally: false,luck_method: "relayed"). - Luck and effort count the imported rows like any other (
src/core/pool_luck.hpp): integrated over the node's own rate history where it covers a round, otherwise a single sample at the pool rate the source recorded at find (pool_hashrate_at_find). A rate that is not plausibly the pool's is not stored, and that round readshashrate_unavailableinstead of an absurd luck: below the share chain's floor for the winning share's difficulty, below 1 % of the node's own rate history near the block (or of the median of the file's rates where that history does not reach), or above the whole network's rate.
A plain list of block hashes (one per line, # comments allowed, or a JSON
array of strings) works too; those rows carry no pool rate, so their rounds
have no luck unless the node's own history covers them.
c2pool-btc takes the same flag (no YAML key): each row is checked against
the embedded BTC header chain under the BTC label, and there is no merged
chain to import and no coinbase check. The ledger lives in the dashboard, so
the node needs --http. For example, the pool's two BTC blocks as a hash list:
cat > btc-blocks.txt <<'LIST'
# 886688 (2025-03-07), 955609 (2026-06-27)
00000000000000000001822dc3db70b75d281687f8baa10d1818d0703f49fec0
00000000000000000000c9f3c1b80c0f3fd57d18a8fc223cbec004f92b716fb7
LIST
./c2pool-btc <your usual options> --import-found-blocks btc-blocks.txtThe rows are then kept in <data-dir>/bitcoin/found_blocks_db like the
node's own finds, so the flag is needed once.
| Endpoint | Description |
|---|---|
/local_stats |
Local node statistics (peers, hashrates, shares) |
/global_stats |
Pool-wide statistics |
/current_payouts |
Current PPLNS payout distribution |
/recent_blocks |
Recently found blocks |
/connected_miners |
Connected stratum workers |
/stratum_stats |
Per-worker stratum statistics (hashrate, difficulty, accepted/rejected) |
/sharechain/stats |
Share chain state |
/miner_thresholds |
Minimum viable hashrate, dust range |
/merged_stats |
Merged mining block statistics |
/current_merged_payouts |
Current merged mining payouts |
/recent_merged_blocks |
Recent merged-mined blocks |
/broadcaster_status |
Parent chain broadcaster status |
/api/explorer/getblockchaininfo |
Chain info (loopback-only, requires explorer: true) |
/api/explorer/getblockhash |
Block hash by height (loopback-only) |
/api/explorer/getblock |
Full block JSON by hash or height (loopback-only) |
See docs/DASHBOARD_INTEGRATION.md for the complete REST API reference and dashboard/explorer integration guide (and docs/FAQ.md for common questions).
Web dashboard — served from web-static/ by default:
xdg-open http://localhost:8080/Lite block explorer — bundled Python app in explorer/ for browsing recent blocks:
# Enable in config to store blocks + serve REST API
explorer: true
explorer_url: "http://localhost:9090"# Run the explorer UI against c2pool's API
python3 explorer/explorer.py --ltc-c2pool http://127.0.0.1:8080/api/explorer --web-port 9090--analytics-id G-XXXXXXXXXX (off by default; a bad value exits 2) puts the same
Google Analytics tag and consent bar as the node's into every page the explorer
generates: GA4 page views only, after consent, with addresses and query strings
stripped. It is a separate process, so give it the flag as well as the node
(see Google Analytics tag).
The explorer shows block details, decoded coinbase scripts, THE commitment proofs for c2pool-found blocks, and links to Blockchair for transactions/addresses outside the stored range.
Customization — both the dashboard (web-static/) and the explorer (explorer/explorer.py)
are user-customizable components. Edit HTML/JS/CSS in web-static/ or modify
explorer/explorer.py to change the design, add features, or integrate with your
own infrastructure. Block explorer links default to Blockchair but can be overridden
per-node via YAML config:
address_explorer_prefix: "https://your-explorer.example.com/address/"
block_explorer_prefix: "https://your-explorer.example.com/block/"
tx_explorer_prefix: "https://your-explorer.example.com/tx/"Every block found by c2pool embeds structured data in the coinbase scriptSig:
[4] BIP34 block height (consensus)
[44] AuxPoW merged mining commitment (when active)
[N] Operator text (--coinbase-text, see per-lane defaults below)
[32] THE state root (sharechain state commitment)
[M] THE metadata (pool analytics, fills remaining space)
Total: 100 bytes (Bitcoin consensus limit)
The THE state root commits the sharechain state at block-find time (PPLNS distribution, chain height, difficulty). Any node can verify a found block's payouts match the committed state root.
--coinbase-text is capped at 64 bytes (20 when merged mining is active, since
the AuxPoW commitment shares the same 100-byte budget).
| Lane | Default operator text |
|---|---|
LTC (c2pool) |
/c2pool/ |
DASH (c2pool-dash) mainnet |
/P2Pool-DASH/c2pool/ |
DASH (c2pool-dash) testnet / regtest |
/P2Pool-tDASH/c2pool/ |
The DASH default embeds the canonical p2pool marker (COINBASEEXT from the
p2pool-dash oracle networks/dash.py) because block explorers attribute blocks
to a pool by coinbase text — chainz.cryptoid.info
lists the pool as P2Pool-DASH and does not know the string c2pool. The
c2pool/ suffix records which implementation mined the block. The coinbase text
is not consensus-bearing (peers never re-derive it), so overriding it cannot
orphan a share — but an override that drops /P2Pool-DASH/ makes your blocks
unattributable on explorers.
DASH sources this default from its coin SSOT (src/impl/dash/config_pool.hpp);
the same pattern is available for the other lanes but is not yet wired there.
# Create transition signal (authority key holder)
python3 util/create_transition_message.py create \
--privkey <64-hex> \
--from 36 --to 37 --msg "Upgrade to V37" --urgency recommended
# Pass blob at startup (node operator)
./c2pool --message-blob-hex 01a2b3c4...See util/README.md for full documentation.
# Start a private chain
./c2pool --network-id DEADBEEF12345678
# Join the same chain
./c2pool --network-id DEADBEEF12345678 -n OPERATOR_IP:9326The --network-id overrides the IDENTIFIER hashed into every share's
verification hash. Nodes without the correct ID cannot forge valid shares.
See above for details.
| Target | Description |
|---|---|
c2pool-ltc |
Primary binary — release packages ship this per-coin name (c2pool is the dev-build alias) |
c2pool-btc |
Bitcoin parent (src/c2pool/main_btc.cpp) |
c2pool-dgb |
DigiByte Scrypt parent (src/c2pool/main_dgb.cpp; -DAUX_DOGE for embedded DOGE) |
c2pool-bch |
Bitcoin Cash parent (src/c2pool/main_bch.cpp) |
c2pool-dash |
Dash parent (src/c2pool/main_dash.cpp); configure with -DC2POOL_DASH_BLS=ON — see Dash: build with BLS |
c2pool-bip110 |
BIP-110 BLAKE2b fork (src/c2pool/main_bip110.cpp) |
test_hardening |
Softfork gate + reply-matcher regression tests |
test_share_messages |
V36 authority message decrypt/verify tests |
test_coin_broadcaster |
Coin peer-manager and broadcaster tests |
cd build && ctest --output-on-failure -j$(nproc)| Area | Status |
|---|---|
| V36 share format (LTC parent chain) | Production. Share version 3601 (V36 format) on mainnet since 2026-11-13 00:00:00 UTC (v0.2.12.1) |
| V36 share format (DGB Scrypt parent chain) | Running — c2pool-dgb daemonless public node (dgb.voidbind.com), joined to the live DGB sharechain via --sharechain-addnode |
| Daemonless per-coin nodes (BTC, BCH) | Running — public voidbind nodes with no coin daemon on the serve path |
DASH (c2pool-dash) |
Production on mainnet, daemonless by default (embedded coin state; --coin-rpc optional fallback) |
| Merged mining | DOGE in production (embedded); PEP, LKY, SHIC through external daemons, not production-tested; BELLS, JKC (segwit) not supported yet |
| Embedded LTC SPV node | Working |
| Embedded DOGE SPV node | Working |
| Embedded BIP-110 daemonless pool (BLAKE2b fork) | Experimental (live on bip110.voidbind.com; fork-follow + Stratum mining + reward-safe mempool-serving on master #1439) |
| Coin daemon RPC/P2P | Hardened |
| Stratum mining server | Working |
| VARDIFF | Working |
| Payout / PPLNS | Working |
| Authority message blobs (V36) | Working |
| Solo / Custodial modes | Disabled since v0.2.11.1, still in v0.2.12.12.2 (c2pool-ltc refuses to start: their blocks were invalid); not yet fixed |
| Test suite | About 6,500 test cases across about 970 suites |
Need a pool running today? Use the latest c2pool release. The Python p2pool-merged-v36 is no longer maintained and has not been on the LTC share chain since the share version 3601 flag day (2026-11-13 00:00:00 UTC).
- Telegram: https://t.me/c2pooldev
- Discord: https://discord.gg/yb6ujsPRsv
- V37 Purple Paper (Work Receipts design): https://frstrtr.github.io/c2pool/purple-paper.html Erratum E-1: section 9 said the coinbase pays owed amounts "largest first"; the rule is oldest first. Corrected on the site (PR #1881) and in the repository copy (PR #1884).
- Dev chat (Telegram): https://t.me/c2pooldev
- V37 dev-branch primitives (diff): https://github.com/frstrtr/c2pool/compare/master...v37-dev
- c2pool daemon (this repository): AGPL-3.0-or-later. Network use triggers the AGPL source-provision obligation.
- c2pool-core-engine (extracted primitive layer): Apache-2.0, in the separate c2pool-core-engine repository.
- Bundled
src/btclibs/and third-party crypto: retain their original MIT licenses (notices preserved in-file). - V37 Purple Paper (frstrtr.github.io/c2pool): MIT License (as with the Bitcoin whitepaper). The remaining site articles are © technocore.one, all rights reserved.
See deploy/DEPLOY.md for HiveOS/MinerStat/RaveOS setup.