Commit d6ed487
authored
web(d-web): getstats stale/DOA from live sharechain hook, not empty m_node stub (#462)
getstats() seeded orphan/doa/stale_shares from m_node->get_stale_stats(),
but m_node is the empty stub on prod (same root cause as the founding
0-stub bug). Result: the pool_statistics block reported orphan=doa=stale=0
while /stale_rates -- which already reads the real m_sharechain_stats_fn --
told the truth. Prefer that same live hook here (orphan/dead/total ->
orphan_count/doa_count/stale_count/stale_prop), m_node only as fallback.
Charter: a dashboard must never lie about prod health.
Co-authored-by: frstrtr <frstrtr@users.noreply.github.com>1 parent 4fdc8d9 commit d6ed487
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
2949 | 2952 | | |
2950 | | - | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
2951 | 2965 | | |
| 2966 | + | |
2952 | 2967 | | |
2953 | 2968 | | |
2954 | 2969 | | |
| |||
0 commit comments