arena: backfill the rolling window at startup; leaderboard hides zero-block rows #21

Merged
grenade merged 1 commits from arena/backfill-window into main 2026-09-04 07:24:42 +00:00

1 Commits

Author SHA1 Message Date
Rob Thijssen
3d69374c26 arena: backfill the rolling window from chain history at startup; leaderboard hides zero-block rows
After a restart the window started empty, so authors who had not sealed a
block since had no leaderboard row source, no author label series and no
timing caps until they authored again; on the dashboard that showed as
blank author cells for the smaller miners. The first poll now fills the
window (3600 blocks, 15 s against bob) from chain history, window only:
the authored counter is untouched so increase() sees no phantom burst, and
no tip timing is observed for blocks not watched arriving. Capped at 180 s
of wall clock.

The leaderboard's top-20 also drops rows with zero blocks in the range;
they were stale series with nothing to show.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5
2026-09-04 10:24:22 +03:00