Repository navigation
c2pool v0.2.12.14
c2pool v0.2.12.14
This release adds an optional HTTP answer on the stratum port, makes the local hashrate count only sessions that are currently submitting, and bounds the Dash superblock payment total at every step. It includes everything in v0.2.12.13. Recommended for every Dash, LTC/DOGE, BTC, BIP110 and DGB node. Upgrading from v0.2.12.13 is a normal restart: no data format changes. If you are upgrading from an earlier version, read the v0.2.12.13 notes first: on Dash the first start on v0.2.12.13 or later is a cold start.
Stratum and web (all coins)
- HTTP on the stratum port (off by default) (#2310). The node can answer the read-only web API on the stratum port as well:
GETandHEADonly (other methods get405), one response per connection. It is off unless you set--stratum-http=trueor--stratum-http=auto.autoturns it on when the web server is on, is not bound to a loopback address, and is bound to::, to0.0.0.0while the stratum port is bound to an IPv4 address, or to the same address as the stratum port. At most--stratum-http-budget(default 16) such requests are in progress at once, at most--stratum-http-per-ip(default 6) of them from one address (one /64 for IPv6); the others are answered503. An HTTP connection also counts toward the stratum connection limit and the per-IP connection limit while it is open (on LTC these are--max-stratum-connectionsand--max-stratum-connections-per-ip; the other coins have no such options); a connection refused by those limits is closed without an answer.--stratum-http-budget 0answers every such request with503. So does--stratum-http=trueon a node with no web server running; on BTC, BCH, DGB and BIP110 the web server is off by default. - The web port answers
HEADrequests (#2310), except on/control/*,/api/admin/*and/sharechain/stream, which answerHEADwith405.
Dashboard (BTC, LTC, BIP110, Dash)
- Local hashrate counts only sessions that are currently submitting (#2314). A session counts while it is in the
hashingstate the worker table shows: its last accepted share is within the last 900 s, or within 6 expected share intervals at its difficulty when that is longer. Standby (failover or failback) and stalled sessions count nothing; a session counts again on its next accepted share.- This applies to
/local_statsminer_hash_ratesandminer_dead_hash_rates(the Local Hash Rate card),my_hash_rates_in_last_hour,/stratum_statspool.hashrate, the rate in/miner_stats/<address>, and the local-rate graph on BTC and BIP110 (on LTC and Dash the graph has its own rate source and is unchanged). - Per-session rows in
/stratum_statsare unchanged. Shares, payouts and the pool-wide figures are not affected.
- This applies to
- BTC and BIP110 sessions record the time of their last accepted share (#2315), so the time since each session's last share is exact on the dashboard, as on LTC and Dash.
Dash
- Superblock schedules: the running payment total is checked against the superblock budget at every step; a schedule whose total is within the budget is paid as before (#2312).
Tests: test fix (#2313). No change in behaviour.
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.13.
- From v0.2.12.13: a normal restart on every coin. You can go back to v0.2.12.13 on the same data directory. If you added
--stratum-httpoptions, remove them before you go back: v0.2.12.13 does not have them. - From an earlier version: follow the "Upgrade order" in the v0.2.12.13 release notes (Dash: the first start is a cold start of about 21 minutes per node without embedded work), and on LTC/DOGE, when you come from v0.2.12.12.1 or earlier, the one-time header-store check in the v0.2.12.12.2 release notes.
- HTTP on the stratum port stays off after the upgrade. To turn it on, add
--stratum-http=true(orauto) to the node's options.
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