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

test: fix tap tree absence check in rpc_psbt.py

Public commit record

What the developer wrote

Authored by Sebastian Falbesoner

90/100 · Strong
test: fix tap tree absence check in rpc_psbt.py

The check verifies that an output without a script tree gets no
PSBT_OUT_TAP_TREE (see 22c051ca70). It inspected the raw createpsbt
result and sent to a non-taproot output, so it passed trivially.

Send to a bech32m address instead, check the walletprocesspsbt result,
and assert that the taproot internal key is set, so the absence of the
tap tree is actually meaningful.
✓ 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 test in Bitcoin Core that was checking the wrong thing. The test was meant to verify that a simple Taproot output (one without a script tree) does not include an unnecessary 'tap tree' field in a PSBT. However, the original test accidentally sent funds to a regular non-Taproot address, so the absence of a tap tree was meaningless. The fix sends to a proper Taproot (bech32m) address and checks the processed wallet PSBT instead of the raw one, making the test meaningful. There is no change to production code and no security vulnerability is being patched.

Recommended action

No security action required. This is a test-only correction. Reviewers may optionally verify the test now exercises the intended Taproot key-path output behavior.

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.