AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

test: check all inputs after joinpsbts in rpc_psbt.py

Public commit record

What the developer wrote

Authored by Sebastian Falbesoner

95/100 · Strong
test: check all inputs after joinpsbts in rpc_psbt.py

Only the input from psbt2 is finalized, and joining must drop its final
scripts. Since the joined inputs are shuffled, checking inputs[3] only
hit that input in about one out of four runs.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit fixes a flaky test in Bitcoin Core's own test suite. The test was checking only one of four joined transaction inputs for a specific property, but because the inputs are randomly shuffled, it only caught the right input about 25% of the time. The fix checks all four inputs instead. It is a test-only change with no effect on the Bitcoin Core software users run.

Recommended action

No security action needed. This is a test reliability improvement. Reviewers may optionally verify that the loop correctly covers the intended invariant.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.