build-test-release / release (push) Successful in 21m35s
Round 19 #10 telemetry extension, tier 2. Adds the rolling average hashrate windows the GUI asked for (1M/5M/15M/24H) end to end. Core (asic-rs-core): - New HashrateAverages sub-struct (data/hashrate.rs): avg_1m/5m/15m/24h, each an Option<HashRate> carrying the same unit and algorithm as the current hashrate. - New DataField::HashrateAverages; MinerData gains hashrate_averages. - The windows ride the EXISTING GetHashrate trait via a new defaulted parse_hashrate_averages method (default None), so no new supertrait bound and no empty impl in every backend -- only the backends that expose the data override it. parse_data wires it in. Backends (all read a command the collector already fetches -> no extra round-trips; each window is filtered to > 0 and the whole struct is dropped when every window is absent, so a firmware that reports nothing keeps hashrate_averages = None): - WhatsMiner V1: btminer summary MHS 1m/5m/15m (MegaHash); no 24h. - WhatsMiner V3: get.miner.status summary hash-1min / hash-15min (TeraHash) only. - LuxOS: summary GHS 1m/5m/15m/24h (GigaHash) -- full window set. - Braiins v25_07 + v26_04: miner_stats real_hashrate last_1m/5m/15m/24h (GigaHash). - Antminer (5s/30m/av only), WhatsMiner V2 (av only), ePIC/VNish (session average only), sealminer: no standard 1/5/15 window -> inherit None. This is honest: the fixtures confirm those firmwares do not expose the standard windows. GUI: four new columns (HR 1m/5m/15m/24h), single TH/s value each, right-aligned, blank when the window is not reported, auto-hidden when empty across the fleet. MinerRow gains the four ths fields; to_row populates them from hashrate_averages. Fixture tests: whatsminer v1 and braiins v26_04 gain assertions on the parsed windows (value, unit, and the expected present/absent pattern). Patch 0025. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6