wallet2: verify pruned v1 transactions in scan_tx #11825
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.31) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 105 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.279
Real PR Conversation Timeline
1 comments
"Review active on #11825"
general
weight: 0.35
jpk68
scan_txrequests pruned transactions. For a pruned v1 response,get_pruned_tx()uses the daemon's claimedtx_hash, so the existing comparison with the requested txid does not verify the transaction contents.Refetch just those v1 transactions in one unpruned batch per slice and compare their computed hashes before processing. v2 and already complete v1 transactions keep their current path.
Tests:
unit_tests: 1,531 passed, 4 skipped, excluding network-dependent DNS/URL and two environment-sensitive tests.transfer.pyfunctional RPC suite passed, including itsscan_txcases.