Skip to content

Fix hash lookups typed in capitals, staking totals in the address API, and details that went stale on open pages - #72

Merged
minuszka merged 1 commit into
defcon-project:mainfrom
minuszka:fix/a1-small-fixes
Nov 14, 2026
Merged

minuszka merged 1 commit into
defcon-project:mainfrom
minuszka:fix/a1-small-fixes

Conversation

@minuszka

Copy link
Copy Markdown
Contributor

Five small fixes found in a code audit.

  • A transaction or block hash typed in capital letters now opens the same page as in lower case, on the transaction, block and search pages and in the AI lookup used by the MCP tool. Before, it answered "not found" unless the lower-case version happened to be cached.
  • The address rewards API never counted any stakes. It now counts the transactions in which the address staked and reports the net stake reward: what came back minus what was staked. For a very active address the first request reads all of its spending transactions; the answer is cached for 15 seconds.
  • An open transaction, block or address page now updates when a new block arrives: the confirmation count goes up, the newest block gains its "next block" link, and new transactions appear, without a reload.
  • The block page now tells "block not found" apart from "block could not be loaded".
  • The header's "Polling" status (the chain is current, the live connection is reconnecting) is shown in the healthy green instead of the warning colour.
  • Checked with new server, database and browser tests; each fix was undone once to confirm that its test fails without it.

…, and details that went stale on open pages

Five small fixes found in a code audit.

- A transaction or block hash typed in capital letters now opens the same page as in lower case, on the transaction, block and search pages and in the AI lookup used by the MCP tool. Before, it answered "not found" unless the lower-case version happened to be cached.
- The address rewards API never counted any stakes. It now counts the transactions in which the address staked and reports the net stake reward: what came back minus what was staked. For a very active address the first request reads all of its spending transactions; the answer is cached for 15 seconds.
- An open transaction, block or address page now updates when a new block arrives: the confirmation count goes up, the newest block gains its "next block" link, and new transactions appear, without a reload.
- The block page now tells "block not found" apart from "block could not be loaded".
- The header's "Polling" status (the chain is current, the live connection is reconnecting) is shown in the healthy green instead of the warning colour.
- Checked with new server, database and browser tests; each fix was undone once to confirm that its test fails without it.
@minuszka
minuszka merged commit 099a1d0 into defcon-project:main Nov 14, 2026
1 check passed
@minuszka
minuszka deleted the fix/a1-small-fixes branch November 14, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant