Repository navigation
Add a fleet hashrate chart to the admin mining view. - #1245
Merged
evoskuil merged 1 commit intoNov 28, 2026
Merged
Conversation
The chart stacks the hash rate history of the channels to the fleet, on the union of their minute samples, or draws them as lines. The eight channels of highest hash rate are drawn in the chart colors and keep their color while connected; the rest are summed as other. The channel list is the legend: each name is drawn in its chart color (other channels muted). A channel can be pinned to take a color (from the unpinned colored channel of lowest hash rate) and hidden from the chart. Rows for the fleet and for other, with their current rates, can be hidden as well. Hovering a band or a row highlights the channel (or other) in both. Pins and hidden channels are dropped as their channels close. The axis helpers of the channel chart move to lib/mining/axis.ts.
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.
Adds a fleet hashrate chart above the channel list of the admin Mining view.
The slot assignment and the series are pure functions in lib/mining/fleet.ts, with tests. The axis helpers of the channel chart move to lib/mining/axis.ts so both charts share them. The new sources are added to the msvc project. The embedded pages are not regenerated.
Tested against a testnet5 node with five S9 miners (four stratum v1, one stratum v2 through the SRI translator) in the default, light and midnight themes.