test: fix input check of bumped tx in wallet_spend_unconfirmed.py
What changed, and why it matters
This is a one-line fix in a Bitcoin Core functional test. The test was accidentally checking the original transaction twice instead of checking the newly created bumped (fee-increased) transaction. It does not change any production wallet or node code, so it cannot affect real users, funds, or network security.
No security action needed. Treat as a normal test-quality improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In test/functional/wallet_spend_unconfirmed.py, the RBF bumping test called self.assert_spends_only_parents(ancestor_aware_tx, [parent_txid]) after bumping the fee, but ancestor_aware_tx was the pre-bump transaction. The fix passes bumped_ancestor_aware_tx to the assertion so the replacement transaction’s inputs are validated. This is purely a test correctness change.
Changed components
test/functional/wallet_spend_unconfirmed.pyInspect captured patch +1 / −1
### test/functional/wallet_spend_unconfirmed.py
@@ -324,7 +324,7 @@ def test_rbf_bumping(self):
bumped_ancestor_aware_txid = wallet.bumpfee(txid=to_be_rbfed_ancestor_aware_txid, options={"fee_rate": self.target_fee_rate * 2} )["txid"]
bumped_ancestor_aware_tx = wallet.gettransaction(txid=bumped_ancestor_aware_txid, verbose=True)
- self.assert_spends_only_parents(ancestor_aware_tx, [parent_txid])
+ self.assert_spends_only_parents(bumped_ancestor_aware_tx, [parent_txid])
resulting_bumped_fee_rate = self.calc_fee_rate(bumped_ancestor_aware_tx)
assert_greater_than_or_equal(resulting_bumped_fee_rate, 2*self.target_fee_rate)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.