Repository navigation
Conversation
Replace the local path override with a pinned git revision of the zcash_client_memory NU7 port, so the workspace builds from a clean clone. Repoint it at red-dev-inc/zcash_client_memory once that port merges.
…transfer_payments
This was referenced Oct 28, 2026
ETIM-PAUL
force-pushed
the
pr/network-upgrade-check
branch
from
October 28, 2026 23:46
b222a4f to
08b4f52
Compare
This branch has not been deployed
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.
What
The wallet now notices when the server's chain is on a network upgrade the library doesn't support, and refuses to act on it.
getNetworkStatus()compares the server'sGetLightdInfo(consensus branch id and height) with what the library expects at that height. It returns the list of known upgrades, the next upgrade if one is scheduled, and warnings. It never throws on a mismatch.sync,create_proposed_transactions,pczt_shieldand PCZT creation check first. On a mismatch they throw anErrorwithcode: "unsupported_network_upgrade", pluschain_branch_id,chain_heightandnewest_known_upgrade.BranchId::height_bounds, so the list stays in step with the crates.upgradeName/upgradeHeightfields in the lightwalletd proto), the status reports it. If the library doesn't know that upgrade, there's an early warning.Why
When a network upgrade activates, a wallet library that's too old can build transactions the network rejects, or scan the chain wrongly. Today it fails with low-level errors. A typed error lets apps tell users to update.
Stack
This is PR 4 of 4 and builds on #23 (and #22, #21). This PR's own changes: ETIM-PAUL/WebZjs-red-dev@pr/raw-memo-access...pr/network-upgrade-check
Testing
LightdInfovalues: match, unknown branch, a library that's behind, a server that announces an upgrade, and others. fmt, clippy and the wasm build are clean.getNetworkStatus()reportssupported: false, andsyncthrowsunsupported_network_upgradewith the chain fields.🤖 Generated with Claude Code