Repository navigation
c2pool v0.2.12.13
c2pool v0.2.12.13
This release lets a Dash node resume its masternode list after a header-store reset, makes the Dash header chain follow its built-in anchor, and no longer relays a Dash share-chain block solution whose time is below the network's minimum. It includes everything in v0.2.12.12, v0.2.12.12.1 and v0.2.12.12.2. Recommended for every Dash node. Read the Dash rollout notes under "Upgrade order" first: the first start is a cold start. LTC/DOGE nodes get the stratum clean-jobs fix (#2290) and the source node's effort on imported found blocks (#2284); if you have not installed v0.2.12.12.2 yet, install this release instead.
Dash
- The masternode list resumes after a header-store reset. A node that starts from a fresh or reset Dash header store resumes the masternode list from its saved position instead of rebuilding it from the built-in checkpoint. Once a node runs v0.2.12.13, a header-store reset costs a few minutes instead of about 21 (#2307).
- The saved record moves to a new format (v5), so the first start on this version is a cold start. See "Upgrade order".
- The Dash header chain follows the built-in anchor. This applies to a header store that starts from the built-in fast-start checkpoint (mainnet); testnet stores are unchanged (#2307).
- A store whose saved tip is not on the chain through the anchor picks its tip again at the next start (logged as a WARNING). No reset is needed.
- A store written before the anchor existed starts from the anchor at the first start, as an empty store does (logged once as a WARNING). No reset is needed.
- On mainnet a header whose difficulty bits are not the expected DGW bits is logged and refused; testnet logs and accepts it.
--header-dgw-log-onlymakes mainnet log and accept such a header instead. The node logs a WARNING at startup.
- Block solutions from the share chain are no longer relayed when their time is below the Dash network's minimum. Share validation is unchanged (#2294).
- The embedded template sets a minimum time only when the node can compute it. Shortly after a cold start the template may carry no minimum time (#2294).
- No built-in DASH v36 seed nodes yet. A node started with
--net dash-v36and neither--addnodenor--connectsays at startup that there are no built-in seeds and asks for--addnode. If your node relied on the built-in list, pass--addnodewith the nodes to connect to. Nodes that pass--addnodeor--connectare not affected (#2306).
LTC / DOGE
-
Imported found blocks take the source node's measured effort. With
--import-found-blocks, a row takes the effort the source node measured when all of these hold (#2284):- the round starts at the same block on both nodes;
- the source measured at least half of the round;
- this node's own measurement covers less of the round;
- where this node measured part of the round, the two agree within a factor of 3;
- the figure is within the bounds a rate at find is held to;
- the block is on this node's chain and is not this node's first block.
Such a row is served with
effort_method"imported" and shows a ⇣ mark on the dashboard. Display only: shares, payouts and blocks are not affected. -
If you imported found blocks with an earlier version, fetch the source files again and import them once more. Rows imported before gain the source's effort where the rules above hold; a further import changes nothing (#2284).
-
/recent_merged_blocksrows servepool_hashrate_at_findandpool_hashrate_source, as/recent_blocksdoes. A merged block found by another node of the pool is stored with the pool rate at the time its share arrives (#2284).
All coins
- Clean jobs are no longer lost while work is not ready. A clean job requested while the node's work was not ready is now sent with
clean_jobs=trueonce work is ready, so miners drop their stale jobs. An owed clean flag goes out with the first job sent, whichever notify sends it. A session keeps at most one pending retry, however many notifies arrive during the wait. Themining.notifyformat is unchanged (#2290). - Predicted Payout History on Dash, Bitcoin and BIP-110 nodes. The miner page's payout history chart now records the same split
/current_payoutsshows; it stayed empty on coins that compute payouts outside the coinbase cache. LTC is unchanged. History fills from the upgrade on (#2293). - LevelDB stores free their block cache and filter when they close. Each open of a store left its block cache and bloom filter allocated. The store now owns both and frees them on close. Options, cache size and filter are unchanged (#2308).
Dashboard
-
dual.htmlshows two DASH share chains side by side, for a site that proxies two c2pool nodes (/api/poolslists them;/api/<id>/*is each node's API). Each row holds the same widget for both chains (#2301):- the node line, with a link to that node's full dashboard;
- six stat tiles: pool hashrate, network share, expected time to a block, last block, shares in chain, miners;
- the pool-hashrate graph, with one 1H/1D/1W/1M switch for both;
- recent blocks and current payouts.
The page refreshes every 60 s and stacks the columns below 900 px. A node served directly has no
/api/pools, and the page sends you todashboard.html. -
dashboard.html?api=/api/<id>pins the full dashboard to one node: no pool tabs and no stored pool switching (#2301). -
Found blocks on the
dual.htmlhashrate graphs. Each graph marks its chain's found blocks in the plotted period, with height, time and an explorer link where the recent-blocks table has one. The figures under each graph add "Blocks", shown as "N in period" (#2304). -
dual.htmlshows how to connect to each share chain, from that chain's/api/poolsentry:"stratum": "stratum+tcp://host:port"or"connect": trueshows the connection details; any other entry shows a private card, whose text"connect_note"overrides (#2309). -
Multi-pool mode accepts only plain pool ids from
/api/pools, matching[a-z0-9_-]{1,32}. Other entries are skipped (#2303).
Docs and tests: README updates (#2299, #2300, #2302) and test fixes (#2291, #2305). No change in behaviour.
Also in this release (since v0.2.12.11)
Released in v0.2.12.12 (Dash):
- InstantSend locks are checked against recently rotated quorums. A lock signed by a quorum that rotated out shortly before is now recognised, as Dash Core does (#2288).
- Templates follow InstantSend locks. When a verified lock conflicts with a transaction in the template being served, the template is rebuilt at once and miners get clean work (#2287).
- A lock that fails signature verification no longer affects which transactions are mined. If verification refuses a lock that the relay side had already acted on, its effect on the mining-safety hold and on transaction selection is undone. Malformed locks are dropped before either side acts on them (#2289).
- Lower CPU when provider transactions are in the template. The masternode-list root computed for them is now reused across work updates while the coins it read are unchanged, instead of being recomputed for every miner on every update (#2285).
- Block solutions from the share chain are relayed at the network's difficulty only. A block found through the share chain is recorded and relayed to the Dash network only when its difficulty is the one the network requires after its parent block; anything else is logged and not relayed. When the node cannot determine the network's expected difficulty for the parent block (its header chain does not hold that parent within the last few blocks), it does not relay the block; the node that found it relays it itself (#2292).
- A won block is not held back when the local Dash Core does not answer. On a node with a Dash Core RPC arm, a block found during a height race is checked by Dash Core first; if that call fails without an answer, the block now goes out over the embedded P2P relay, as on a daemonless node. A block Dash Core rejects is still not relayed (#2295).
Released in v0.2.12.12.1 (Dash):
- Header-chain robustness fix. Recommended for every Dash node (#2296).
Released in v0.2.12.12.2 (LTC / DOGE, dashboard):
- LTC / DOGE embedded header chains: the genesis header is accepted only into a header store that has no tip yet (#2297).
- Dashboard, Discovered Merged Blocks: the parent hash links to the parent-chain explorer only when its parent height is known; otherwise it is shown as text (#2298).
Upgrade order
Restart one node at a time. Before you restart the next node, wait until the restarted node is back on the live share chain, with the same best share as its peers. Share validation, payouts and the network protocol are unchanged from v0.2.12.12.2.
Dash rollout notes:
- The first start on v0.2.12.13, and any rollback to an earlier version, is a cold start of the masternode-list state: about 21 minutes per node without embedded work.
- Roll one node at a time and keep the others serving. Start with a node that has no miners. Before you roll a node, make sure its miners can use another node.
- The upgrade needs no header-store reset. A node whose header store predates the anchor starts its header chain from the anchor at the first start (logged once as a WARNING).
- After the upgrade, a Dash header-store reset takes a few minutes instead of about 21.
- v0.2.12.12.1 and v0.2.12.12.2 use the same anchor as this release. You can go back to either on the same data directory, with no header-store move; it is a cold start again, about 21 minutes per node.
- Once a build with a newer anchor exists: before you go back from it to this release, move the Dash header store aside:
- Stop the node and wait until the process has exited.
- Move aside only the
dash_headersdirectory inside the node's Dash directory under<data>(dash, or thedash_…directory of your network, such asdash_…_v36on the v36 network).<data>is your--data-dir, otherwise~/.c2pool(Linux, macOS) or%APPDATA%\c2pool(Windows). Leave everything else in place. - Start the node. Once it runs normally, you can delete the moved directory.
LTC / DOGE:
- If you are upgrading from v0.2.12.12.1 or earlier, do the one-time header-store check in the v0.2.12.12.2 release notes after upgrading.
- You can go back to v0.2.12.12.2 on the same data directory. It keeps every found-block row; an imported effort that it rewrites is filled again by the next import (#2284).
Known issues
--soloand--custodialremain disabled.- On LTC the pool hashrate is the share chain's non-stale rate. It reads about 10% below what miners measure, so effort reads about 10% low and luck about 10% high, until shares report stale work (#2250).
- DASH Best Share still shows a share target rather than the node's own best hash.
Verify the download
SHA256SUMS is signed with key 99556F8DE6AD66057A1A10EC50AB1379285EFE76:
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS