Skip to content

dash(web): wire real c2pool WebServer + JSON API into main_dash#764

Merged
frstrtr merged 1 commit into
masterfrom
dash/web-dashboard-wiring
Jul 20, 2026
Merged

dash(web): wire real c2pool WebServer + JSON API into main_dash#764
frstrtr merged 1 commit into
masterfrom
dash/web-dashboard-wiring

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Stands up the existing c2pool web dashboard + JSON API on the DASH binary, mirroring main_ltc.cpp's WebServer wiring.

  • Real DASH tracker feeds sharechain tip/stats, pool hashrate, per-share difficulty; DASH stratum acceptor feeds local hashrate.
  • Honesty invariant preserved: any stat without a live DASH producer is left UNSET (honest absence), never a zero that reads as a real measurement.
  • New flags: --web-port / --web-host / --dashboard-dir (default 8080 / 0.0.0.0 / web-static; 0 disables; moves to stratum+1 on port collision).
  • Deliberately does NOT call set_stratum_port() — that would double-bind the DASH stratum port and serve X11 miners from the LTC work source. Miner-facing port is surfaced to the dashboard via set_worker_port (display only).
  • New header-only dash::EnhancedDashNode = EnhancedC2PoolNodeT<...> instantiation; no consensus code added or edited (non-consensus web layer).

Builds green (c2pool-dash target); --web-port shows in --help run-path.

Stands up the EXISTING c2pool dashboard on the DASH binary the same way
main_ltc.cpp does: real DASH tracker feeds sharechain tip/stats/pool
hashrate/per-share diff, DASH stratum acceptor feeds local hashrate.
No stub metrics — any stat without a live DASH producer is left UNSET so
the dashboard reports honest absence, never a zero that reads as real.

--web-port/--web-host/--dashboard-dir (default 8080/0.0.0.0/web-static,
0 disables); moves to stratum+1 on collision. Deliberately does NOT call
set_stratum_port (would double-bind the DASH stratum port / serve X11
miners from the LTC work source). New header-only dash::EnhancedDashNode
template instantiation; no consensus code added or edited.
@frstrtr
frstrtr merged commit ba7fb59 into master Jul 20, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant