Conversation
Block details come from a single getblock call and surface Zcash header fields (hex nonce, Equihash solution, commitment roots, note commitment tree sizes), coinbase outputs, per-pool shielded transaction counts and value pools after the block.
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.
Description
Adds the Zcash blocks list (
/zec/blocks) and block detail (/zec/block/:filter) pages, plus theirtzecequivalents.getblockcall per block. Rows fill in as each call returns, so the page stays usable on rate-limited gateways. Pagination uses?fromBlock, the same as Bitcoin.getblock(height, 2)call. It shows:Related Issue
Part of #398. Stacked on #407.
Type of Change
Changes Made
ZcashBlocksPage,ZcashBlockPageandZcashBlockDisplay.ZcashValuePoolsnow takes the pools directly, so the block page can reuse it.zec|tzec/blocksandzec|tzec/block/:filter.zcashlocale strings andtooltips.zcash.blockin all 5 locales.e2e/tests/shared/mocked/zcash-blocks.spec.ts.Screenshots (if applicable)
Checked locally against mocked RPC data at desktop width and at 400px.
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes
npm run test:run: 150 passing.