arena: per-author block gap, timestamp drift and consecutive-block series #12

Merged
grenade merged 1 commits from arena/gap-and-drift into main 2026-09-04 05:38:54 +00:00

1 Commits

Author SHA1 Message Date
Rob Thijssen
b57526fdcc arena: per-author block gap, timestamp drift and consecutive-block series
Two signals that expose what other miners are doing, both from data the
exporter already fetches plus one chain_getBlock per tip block:

- quantus_block_gap_seconds{preimage}: histogram of the time between a
  block and the previous one, by the author of the later block, from the
  authors' own timestamps (the Timestamp::set inherent, pallet 1 call 0,
  decoded from the first extrinsic). Bursts in the lowest buckets for one
  author right after others' blocks are withheld blocks.
- quantus_block_timestamp_drift_seconds{preimage}: block timestamp minus
  the time the exporter first saw the block. Negative is propagation and
  poll lag; positive is a future-dated block, which the Homestead-style
  retarget rewards slightly (the inherent allows 30 s).
- quantus_consecutive_self_blocks_total{preimage}: blocks authored directly
  after the same author's previous block.

Same top-N cap as the leaderboard, with "other" merged and "all" for the
network. Validated live against bob for three minutes. Dashboard row
"Author timing" with p10 gap, median drift and consecutive-block rate.

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