You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dash(dashboard): wire Best Share + peers + found-blocks to the real work source (#790)
Priority — Best Share card. On the DASH solo path shares seldom mint onto
the sharechain, so the tracker's verified-share hook never fired and the
"Best Share" card sat empty. Record every ACCEPTED stratum pseudoshare's
real X11 difficulty + miner + pow-hash into the dashboard best-share
tracker via a new IWorkSource::record_best_pseudoshare() hook that the
core stratum session fires on its vardiff-accept path (the one place every
pseudoshare is seen). DASHWorkSource overrides it to recompute the exact
pow-hash and forward to record_share_difficulty; LTC/BTC/DGB inherit a
no-op (unchanged). record_share_difficulty + BestDifficulty + /best_share
now carry the share hash; a compact best_share block is added to
/local_stats. The dashboard card renders the record hash line. The card
now shows how close the best share got to net difficulty (pct_of_block).
Peers / node-status card. Add dash::Node::get_peer_info_json (ltc node.hpp
parity) and wire MiningInterface::set_peer_info_fn so /local_stats peers
and the node-status panel report the real pool p2p peers instead of 0.
Recent-blocks card. DASHWorkSource fires a found-block hook after a won
block is dispatched to the network; main_dash records it via
record_found_block so DASH block wins appear in the found-block history.
All three are display-only feeds: no share/target/payout/consensus logic
is touched (the record_best_pseudoshare and found-block calls run after the
existing accept/dispatch decisions and only read callbacks). Verified live
against a testnet dashd: best_share populated difficulty=7.05e-4,
pct_of_block=8.5%, with the exact pow-hash + miner; miner_hash_rates,
block_value and payout split also populate through the reused LTC wiring.
0 commit comments