mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
wallet: Use util::Result for fee bumping methods #37017
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!37017
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor-fee-bumper-expected"
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?
Currently the fee bumping transactions use in/out params and a
feebumper::Resulttype to report error status. This is emulatingutil::Resultandutil::Expected. There are also a few problems in the current implementation: There is an error vector passed to each method, but only one error can occupy it at any time. In the case that a transaction cannot be marked as replaced, the error is actually treated as a warning and shown to the user. TheINVALID_REQUESTvariant is not used.We can resolve these using the existing
util::ResultandExpected. This is also required for #35302 inCreateRateBumpTransaction.Also, one failure case was missing a functional test, which I added here as well
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.
LLM Linter (✨ experimental)
Possible typos and grammar issues:
src/wallet/types.h:wanrings→warnings[misspelling]src/wallet/types.h:comitting→committing[misspelling]2026-11-30 09:02:16
🔵 Suggestion ·
MarkReplacedfailure lacks success-with-warning coverageThe refactor changes the warning representation, but no test checks that a failed
MarkReplacedstill returns the replacement txid and RPCerrorsrather than an exception.Location:
src/wallet/rpc/spend.cpp:1162(head).Review coverage was incomplete.
Reviewed:
1f31ecd81b1e· Review report · Previous reportspermalink
ACK https://github.com/bitcoin/bitcoin/pull/37017/commits/1f31ecd81b1ebadf26e484e3114f6bcc79a6da2b
https://github.com/bitcoin/bitcoin/pull/37017/commits/699ca17170debaeeb5b3a03d35a9f5a09af1b63d:
Verified that this test fails if these lines
github.com/bitcoin/bitcoin@afedb19cca/src/wallet/feebumper.cpp (L182-L185)are commented out.tACK
1f31ecd81bConfirmed
wallet_bumpfee.pypasses at699ca17170and1f31ecd81b, andfeebumper_testspasses at the head, also testedbumpfeeon regtest and it passed (both a successful bump and an unknown txid returning error -5)Strong Concept ACK - this kind of code refactor (cleanup) is desired.