feat: add rustchain_hall_of_fame — oldest/most-prized attesting hardware (Task 1 remainder) - #9
Merged
Scottcjn merged 1 commit intoJul 10, 2026
Conversation
Completes the remaining piece of bounty Scottcjn#1 Task 1 (rustchain_bounties and rustchain_epoch landed via #3074; hall_of_fame was left over). Ranks attesting miners by antiquity multiplier (the chain's own reward for age/rarity), tie-broken by earliest first-attestation. Keyless by design: derived from the public /api/miners surface, since /hall/leaderboard is auth-gated and using it would break the package's read-only / keyless safety contract. Shared _reshape_hall helper keeps sync + async output byte-identical (parity test added). Tool never raises inside an agent loop; 8 new HTTP-mocked tests, full suite 41 passed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rustchain_hall_of_fame— the oldest / most-prized attesting hardwareCompletes the last remaining piece of #1 Task 1.
rustchain_bountiesandrustchain_epochalready landed via #3074; the third tool,rustchain_hall_of_fame, was left over — this adds it, matching the existing tool pattern exactly.What it does
Ranks the attesting miners into an antiquity leaderboard — highest antiquity multiplier first (the chain's own reward for old/rare hardware), tie-broken by the earliest first-attestation. Each entry: rank, miner id, device family, hardware type, antiquity multiplier, first-attest day, and days attesting. Live output:
Keyless by design
The task mentions
/hall/leaderboard, but that endpoint is auth-gated (401) — wiring it in would break the package's stated read-only / keyless safety contract. So the hall of fame is derived from the public/api/minerssurface instead (it already carriesantiquity_multiplier,first_attest,last_attest,device_family,hardware_type). Same data, no keys.Consistency with the codebase
_reshape_hallhelper (next to_reshape_bounty) so the sync and async clients return byte-identical output — parity test added._run/_arunnever raise inside an agent loop.summarize_hall_of_fame; README tool table + version bump (0.4.0).pytest -q→ 41 passed, no network, no warnings.Read-only / keyless, no new deps. RTC wallet:
RTCd1554f0f35576faf01d386a6be1c947f560dd0b7/claim