Skip to content

Raise payload cap for recovery snapshot queries - #12

Merged
realbub merged 2 commits into
mainfrom
raise-recovery-payload-cap
Jul 9, 2026
Merged

Raise payload cap for recovery snapshot queries#12
realbub merged 2 commits into
mainfrom
raise-recovery-payload-cap

Conversation

@realbub

@realbub realbub commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

A real wallet's include_parents response was 6.9 MB, over the 4 MiB transport default — resourceExhausted. Sets 128 MiB request/response caps via per-call CallOptions, scoped to getRecoverySnapshot()'s two query_nodes calls only. Verified against mainnet with both funded test wallets.

🤖 Generated with Claude Code

realbub and others added 2 commits July 9, 2026 16:57
query_nodes(include_parents) returns every leaf's full ancestor chain in
one message; a long-lived wallet blew past the transport's 4 MiB default
(seen live: 6.9 MB -> resourceExhausted 'Message has exceeded the
configured maximum payload size'). Scoped to the recovery queries via
per-call CallOptions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The owner query also returns historical nodes (old splits, spent
intermediates) that no exit package uses. Walk each leaf's parent chain
and keep only those ancestors; throw if a needed chain has a hole
(replaces the blanket all-parents completeness check, which could fail
on irrelevant historical chains).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@realbub
realbub merged commit 0552281 into main Jul 9, 2026
1 of 2 checks passed
@realbub
realbub deleted the raise-recovery-payload-cap branch July 9, 2026 22:47
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