Repository navigation
Fix hash lookups typed in capitals, staking totals in the address API, and details that went stale on open pages - #72
Merged
Conversation
…, 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.
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.
Five small fixes found in a code audit.