Skip to content

feat(zcash): add mempool page and navbar mempool link - #410

Merged
MatiasOS merged 4 commits into
issue-398-zcash-transactionsfrom
issue-398-zcash-mempool
Nov 21, 2026
Merged

MatiasOS merged 4 commits into
issue-398-zcash-transactionsfrom
issue-398-zcash-mempool

Conversation

@MatiasOS

@MatiasOS MatiasOS commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Description

Adds the Zcash mempool page (/zec/mempool, /tzec/mempool) and shows the navbar mempool link on Zcash networks.

The page gets every pending transaction from a single verbose getrawmempool call and sorts them by fee rate. There are no per-transaction fetches. Pagination is client-side and the page refreshes every 60s, which keeps it within hosted gateway rate limits.

Each row links to /zec/mempool/:txid, which opens the transaction page.

Related Issue

Part of #398. Stacked on #409.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Performance improvement
  • Other (please describe):

Changes Made

  • ZcashMempoolPage shows the txid, age, size, fee and fee rate (zat/B) for each pending transaction. On narrow screens, age, size and fee rate are hidden; like the other explorer tables, the table scrolls horizontally, since .dash-table keeps a 600px minimum width.
  • Routes and lazy exports for zec|tzec/mempool and zec|tzec/mempool/:filter.
  • NavbarLogo now shows the mempool link on Zcash networks too.
  • zcash locale strings for the mempool page in all 5 locales.
  • A hermetic e2e spec at e2e/tests/shared/mocked/zcash-mempool.spec.ts. The shared RPC mock now also serves a verbose mempool.

Screenshots (if applicable)

Checked locally against mocked RPC data at desktop width and at 400px.

Checklist

  • I have run npm run format:fix and npm run lint:fix
  • I have run npm run typecheck with no errors
  • I have run tests with npm run test:run
  • I have tested my changes locally
  • I have updated documentation if needed
  • My code follows the project's architecture patterns

Additional Notes

  • Zebra's verbose mempool entries include size and fee but no vsize or weight, so the fee rate is in zatoshis per byte.
  • Tests (before the review follow-up):
    • npm run test:run: 151 passing.
    • Hermetic Zcash e2e specs: 11 passing.

Review follow-up

  • Network switches. The mempool page aborts its polling when the network changes, so a slow zec response can't fill the tzec list. An in-flight guard keeps a slow refresh from stacking another.
  • The loader waits out the rate-limit retry window and Retry re-runs the fetch.
  • mempool.summary has plural forms ("1 pending transaction").
  • E2E: the singular summary, and a slow mainnet response after switching to testnet.

Tests after the follow-up

  • npm run test:run: 199 passing.
  • Hermetic Zcash e2e specs at this PR: 23 passed, no retries.

@MatiasOS
MatiasOS added this pull request to stack #414 September 15, 2026 00:17
@MatiasOS
MatiasOS force-pushed the issue-398-zcash-mempool branch from 0685c1a to 5bebe56 Compare November 20, 2026 22:11
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

🚀 Preview: https://pr-410--openscan.netlify.app
📝 Commit: 69884c570608abc93660d7a4f807c00438ad21dc

The page lists pending transactions from a single verbose getrawmempool call, sorted by fee rate, so it needs no per-transaction fetches and refreshes every 60s within hosted gateway rate limits.
- The mempool page aborts its polling when the network changes, so a
  slow zec response can no longer fill the tzec list, and an in-flight
  guard keeps a slow refresh from stacking a second one.
- The loader waits out the rate-limit retry window and Retry re-runs
  the fetch instead of reloading the page.
- The page reads its network from useZcashNetworkFromPath and uses
  the shared relative time.
- mempool.summary gets plural forms ("1 pending transaction").
- E2E: the singular summary, and a slow mainnet response after
  switching to testnet.
@MatiasOS
MatiasOS force-pushed the issue-398-zcash-mempool branch from 5bebe56 to 69884c5 Compare November 20, 2026 23:44
@MatiasOS
MatiasOS merged commit 7ae49ff into dev Nov 21, 2026
7 checks passed
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