Skip to content

fix(rpc): retire the legacy shieldedPool_* server - #119

Merged
nol4lej merged 1 commit into
mainfrom
fix/retire-legacy-shielded-pool-rpc
Aug 6, 2026
Merged

fix(rpc): retire the legacy shieldedPool_* server#119
nol4lej merged 1 commit into
mainfrom
fix/retire-legacy-shielded-pool-rpc

Conversation

@nol4lej

@nol4lej nol4lej commented Aug 6, 2026

Copy link
Copy Markdown
Member

shieldedPool_getMerkleProof paired a per-tree Merkle path with the ACTIVE root. Since the multi-tree forest landed, seal_tree resets PoseidonRoot every time a tree fills, so a note inside a sealed tree was served a proof anchored to a different tree entirely. The wallet would build something that fails is_known_root, and the funds would look frozen. The server also masked runtime API failures as an all-zero root via unwrap_or([0u8; 32]), turning a loud error into a silent one.

client/rpc-v2 already resolves the anchor correctly through get_root_for_leaf and additionally exposes tree_id, which the old server had no field for. Keeping two implementations of the same endpoint is what let them diverge in the first place, so this removes the stale one rather than patching it — a patch would have left the cause in place.

Verified there were no consumers: only the node registered it, and nothing in the repo calls shieldedPool_. The privacy_ namespace is a superset (5 methods vs 2).

@nol4lej
nol4lej merged commit 2efd4d4 into main Aug 6, 2026
6 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