dash(web): wire real c2pool WebServer + JSON API into main_dash#764
Merged
Conversation
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.
This was referenced Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stands up the existing c2pool web dashboard + JSON API on the DASH binary, mirroring main_ltc.cpp's WebServer wiring.
Builds green (c2pool-dash target); --web-port shows in --help run-path.