wallet_api: preserve view-only scan range #11774
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.32) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 91 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.271
Real PR Conversation Timeline
2 items
Approved
ACK 0cfc4572a43bc5d9ba748052d0a46fee83ab3c36
jpk68
Ap4sh
createWatchOnly()starts with the default subaddress range and does not carry over the source wallet's issued addresses or custom lookahead. A newly created view-only wallet can therefore miss previously issued, unpaid addresses after reopening.copy the issued account/address counts and lookahead before importing outputs, then persist the updated keys file. private labels, notes and tags remain out of the export.
tests:
ctest -R '^libwallet_api_tests$' --output-on-failure(passed). the new cases check issued index 200, account counts and custom lookahead after reopening.