← Back to Pull requests

wallet_api: preserve view-only scan range #11774

Open
Ap4sh opened this pull request with 91 lines diff across 2 files
View on GitHub
Ap4sh Ap4sh commented on Nov 20, 2026 17:53 UTC
Author

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.

Diff: 91 lines (+89 / -2) across 2 files Reviewer: jpk68 Review duration: 14577m
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
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
0.35
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
67%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
jpk68 jpk68 approved these changes on Nov 20, 2026 20:15 UTC
Approved Reviewer

ACK 0cfc4572a43bc5d9ba748052d0a46fee83ab3c36

Reviewers
Assignees
Ap4sh Ap4sh
Labels
risk: low confidence: 67.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 31.5% (LOW) · Higher = larger blast radius
31.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 67.5% · Lower = rushed or shallow review
67.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 10.2% · Safe to merge
10.2%