mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
wallet/feebumper: reject an original_change_index output without a destination #36962
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36962
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor-fee-bumper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moved from #35302 due to https://github.com/bitcoin/bitcoin/pull/35302#issuecomment-7126751401.
This PR:
refactorsCreateRateBumpTransactionto return autil::Expectedof a Result and Error Struct instead of using out params. This change makes it easier for #35302 to add a sp_recipients field to the Result Struct instead of adding a new output parameter.original_change_indexthat specifies an output without a destination. The pre-existing behaviour silently replaced the specified output if anOP_RETURNoutput was specified.EDIT:
Scrapped the refactor of
CreateRateBumpTransactionto returnutil::Expectedin favour of https://github.com/bitcoin/bitcoin/pull/37017.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
🔵 Suggestion ·
original_change_indexhelp omits the new output restrictionThe shared
bumpfeeandpsbtbumpfeehelp promises reuse of the selected output script without mentioning thatCNoDestinationoutputs now cause an invalid-parameter error.Location:
src/wallet/feebumper.cpp:199(head).🔵 Suggestion · The new guard's P2PK acceptance is untested
The
original_change_indextests do not distinguish rejectingCNoDestinationfrom rejecting every falseExtractDestinationresult, which would incorrectly reject valid P2PK change outputs.Location:
test/functional/wallet_bumpfee.py:298(head).Reviewed:
b903c2bc9dcf· Review report · Previous reportspermalink
Concept ACK
As I mentioned in https://github.com/bitcoin/bitcoin/pull/35302#issuecomment-7126751401, this can replace an
OP_RETURNwhich is posting a proof for a meta protocol or similar. I agree that this should throw an error explicitly as this a mistake on behalf of the user.I think something like
Change position refers to an output that cannot receive change (e.g. OP_RETURN)might be more user friendly in troubleshooting the issue.Could you also cover
psbtbumpfeein the regression test?I ran
wallet_bumpfee.pyon Linux arm64 atd03bccefa15587e40a4a482bad774f168863ad56, and it passed. In a local variant of the test,psbtbumpfeealso rejected an attempt to designate anOP_RETURNoutput as change viaoriginal_change_index. With the new guard removed, thebumpfeeregression assertion failed as expected.Done.
re: @cyb3ralbert
Done.
See #37017 for an approach to remove
feebumper::ResultentirelyACK
b903c2bc9dConcept ACK