Repository navigation
Conversation
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, 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. |
achow101
reviewed
Mar 24, 2026
shuv-amp
force-pushed
the
fix-wallet-bump-fee-error
branch
2 times, most recently
from
March 25, 2026 07:24
a241bd8 to
69b9601
Compare
achow101
reviewed
Apr 30, 2026
shuv-amp
force-pushed
the
fix-wallet-bump-fee-error
branch
from
May 1, 2026 09:45
69b9601 to
e0ef938
Compare
shuv-amp
force-pushed
the
fix-wallet-bump-fee-error
branch
from
May 2, 2026 01:09
e0ef938 to
119c28b
Compare
calculateIndividualBumpFees returns an empty map when MiniMiner cannot calculate fees for requested unconfirmed outpoints, such as when GatherClusters hits its transaction limit. FetchSelectedInputs and AvailableCoins then index the map and can surface map::at to users. Return an error when the map is empty for non-empty requested outpoints. Make AvailableCoins return util::Result<CoinsResult> so transaction creation and sendall can propagate this error. No-feerate callers keep the existing behavior by unwrapping the result. The mini_miner fuzz target asserted that the calculation is always ready, which no longer holds once that limit is hit, so handle both outcomes there, and add unit coverage that hitting the limit yields no bump fees. Add a functional regression test for the bitcoin#29711 scenario. Cover auto-selected inputs, manually selected inputs, and sendall, and check that spending succeeds again after mining a block.
shuv-amp
force-pushed
the
fix-wallet-bump-fee-error
branch
from
August 19, 2026 21:22
119c28b to
a34afcd
Compare
Contributor
Author
|
Rebased on master. Changes since the last round of review:
|
Member
|
ACK a34afcd |
1 of 2 tasks
This comment was marked as spam.
This comment was marked as spam.
Contributor
|
Approach ACK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #29711.
When MiniMiner cannot calculate individual bump fees, wallet funding can
index missing bump-fee entries and return
map::atto users.Treat an empty bump-fee map for non-empty requested outpoints as a
calculation failure. Make
AvailableCoinsreturnutil::Result<CoinsResult>so transaction creation andsendallcanpropagate the wallet error instead of leaking an internal exception.
Add a functional regression test in
wallet_spend_unconfirmed.pycovering the large unconfirmed set scenario from #29711. The test checks
auto-selected inputs, manually selected inputs, and
sendall, and verifiesthat spending succeeds again after mining a block.
Tested:
cmake --build buildbuild/bin/test_bitcoin --catch_system_errors=nobuild/bin/test_bitcoin --run_test=miniminer_tests --catch_system_errors=nobuild/bin/test_bitcoin --run_test=spend_tests --catch_system_errors=nobuild/bin/test_bitcoin --run_test=coinselector_tests/bump_fee_test --catch_system_errors=nobuild/bin/test_bitcoin --run_test=wallet_tests/ListCoinsTest --catch_system_errors=nobuild/bin/test_bitcoin --run_test=wallet_tests/BasicOutputTypesTest --catch_system_errors=nopython3 build/test/functional/test_runner.py wallet_spend_unconfirmed.py wallet_sendall.py wallet_send.py wallet_fundrawtransaction.py wallet_bumpfee.py wallet_create_tx.py wallet_basic.pybuild/bin/bench_bitcoin -filter='WalletAvailableCoins|WalletCreateTxUseOnlyPresetInputs|WalletCreateTxUsePresetInputsAndCoinSelection' -sanity-check