What changed, and why it matters
This commit only fixes the indentation of comments and code inside a single test file. No real program logic, security behavior, or user-facing code was changed. It is a cosmetic/test-only formatting correction.
No action needed; this is a non-security formatting fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff in tests/test_psbt_parser.py re-indents several lines that were accidentally left at column 0 inside a test method, restoring them to the proper nested indentation. The actual statements executed by the test remain identical; only whitespace changed. There is no runtime or security impact.
Changed components
tests/test_psbt_parser.pyInspect captured patch +9 / −9
### tests/test_psbt_parser.py
@@ -1314,19 +1314,19 @@ def test__parse__verified_derivation_paths_none_for_not_owned_input(self):
"""
psbt = self._psbt_with_change()
-# Build the other party's input, starting from a copy of our input:
-foreign_input = deepcopy(psbt.inputs[0])
+ # Build the other party's input, starting from a copy of our input:
+ foreign_input = deepcopy(psbt.inputs[0])
-# A payjoin counterparty's input would not have derivation path info
-foreign_input.bip32_derivations.clear()
+ # A payjoin counterparty's input would not have derivation path info
+ foreign_input.bip32_derivations.clear()
-# Alter the input so it's owned by the other party
-foreign_input.witness_utxo.script_pubkey = script.p2wpkh(foreign_public_key())
+ # Alter the input so it's owned by the other party
+ foreign_input.witness_utxo.script_pubkey = script.p2wpkh(foreign_public_key())
-# We can't let this copy's original non_witness_utxo contradict the witness_utxo we just altered.
-foreign_input.non_witness_utxo = None
+ # We can't let this copy's original non_witness_utxo contradict the witness_utxo we just altered.
+ foreign_input.non_witness_utxo = None
-psbt.inputs.append(foreign_input)
+ psbt.inputs.append(foreign_input)
# The payjoin shape
psbt_parser = self._parse(psbt)Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.