1 minor finding · 1 suggestion
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · Removing <iterator> leaves its declarations used without a direct include
descriptor.cpp still uses std::back_inserter, so removing <iterator> introduces a transitive-header dependency and will likely cause the enforced IWYU job to restore it and fail.
Location: src/script/descriptor.cpp:38 (base).
Details and suggested fix
MultisigDescriptor::Clone and TRDescriptor::Clone still call std::back_inserter, which <iterator> declares. ParsePubkeyInner also retains array std::begin/std::end calls. Transitive includes may keep compilation working, but this file is covered by the dedicated IWYU job, which runs fix_includes.py and fails on a remaining diff. Restore #include <iterator>; this does not require removing <ranges>. IWYU was not run, so the CI failure remains a prediction.
Optional improvements
[suggestion] · Taproot key errors no longer identify the failing leaf
After removing the quoted key, malformed keys in different tr() leaves can produce identical errors because the new positions are local to each leaf.
Location: src/script/descriptor.cpp:2055 (head).
Details and suggested fix
With valid keys H and A and a malformed non-hex key BAD, both tr(H,{pk(A),pk(BAD)}) and tr(H,{pk(BAD),pk(A)}) report only pk(): key is not valid. The tr() loop returns the leaf's error unchanged. Miniscript and multi_a() key numbers do not resolve this ambiguity because they restart within each leaf. Prefix a failed leaf's error with its 1-based traversal position, available as subscripts.size() after emplace_back. This locates the failure without restoring any key text.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: A colon alone selects the miniscript diagnostic (earlier report)
- [suggestion]:
CheckUnparsablediscards the private-input diagnostic (earlier report)