You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add test coverage for bump fee calculation failure in feebumper #34902
errors.push_back(Untranslated(strprintf("Failed to calculate bump fees, because unconfirmed UTXOs depend on an enormous cluster of unconfirmed transactions.")));
A functional test using the bumpfee RPC can be a possible solution.
There is a wallet_bumpfee test file that has a good amunt of tests, which can be referred to come up with a solution.
Useful Skills
Compiling Bitcoin Core from source
Running the C++ unit tests and the Python functional tests
Wallet transaction creation
Handling unconfirmed UTXOs while creating and bumping wallet transactions
Fee rate and mempool fee environment theoretical knowledge
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.
@rkrux you are suggesting to develop a functional test to be added to wallet_bumpfee.py. I don’t think it is possible to have a cluster with more than 500 transactions without exceeding the hardcoded limit MAX_CLUSTER_COUNT_LIMIT{64} set in txgraph.h, am I right?
sendrawtransaction RPC should return too-large-cluster.
I'd like to take a look at this. I'm currently setting up my local build with bitcoind and the test framework. I have experience with [C++/Python] and I've been contributing to other high-scale projects like Dify.
I'll investigate the current test coverage in feebumper.cpp and see where the failure case needs to be added to the functional tests. I'll follow up with a PR or questions once I have the reproduction running
Opened #35472 for this — a functional test in wallet_bumpfee.py as requested.
Earlier attempts (#34924, #34961, and a few duplicates) closed without landing. The closest functional one, #34961, calls bumpfee without an explicit fee_rate, which skips CheckFeeRate() — the path fixed in #34870 — and likely hits the same error from coin selection in spend.cpp instead. This test passes fee_rate and uses a short setup (create the bumped tx while clusters are still small, evict it from the mempool before growing them to 8×64) so we actually exercise the intended RPC path rather than accidentally merging clusters or failing earlier during tx creation.
Activity
aya119119 commentedon Mar 23, 2026
eloo I'de take this onee
furszy commentedon Mar 23, 2026
@aya119119 awesome, welcome to Core. Feel free to tag me when you create the PR for it.
Crystora commentedon Mar 25, 2026
@rkrux @furszy Can I also contribute, too?
mkdev5 commentedon Mar 26, 2026
@aya119119 @furszy I opened a PR to fix this issue. please review it and share your feedback. 🙏
carloantinarella commentedon Mar 26, 2026
@rkrux you are suggesting to develop a functional test to be added to wallet_bumpfee.py. I don’t think it is possible to have a cluster with more than 500 transactions without exceeding the hardcoded limit
MAX_CLUSTER_COUNT_LIMIT{64}set in txgraph.h, am I right?sendrawtransactionRPC should returntoo-large-cluster.test: add functional test for bumpfee with enormous unconfirmed clusters
wallet: fix crash in coin selection when clusters exceed GatherCluste…
reza6ix commentedon Apr 4, 2026
I'd like to take a look at this. I'm currently setting up my local build with bitcoind and the test framework. I have experience with [C++/Python] and I've been contributing to other high-scale projects like Dify.
I'll investigate the current test coverage in feebumper.cpp and see where the failure case needs to be added to the functional tests. I'll follow up with a PR or questions once I have the reproduction running
maflcko commentedon Apr 7, 2026
Removing the
good first issuelabel, because it encourages llm bots to create duplicates151henry151 commentedon Jun 6, 2026
Opened #35472 for this — a functional test in wallet_bumpfee.py as requested.
Earlier attempts (#34924, #34961, and a few duplicates) closed without landing. The closest functional one, #34961, calls bumpfee without an explicit fee_rate, which skips CheckFeeRate() — the path fixed in #34870 — and likely hits the same error from coin selection in spend.cpp instead. This test passes fee_rate and uses a short setup (create the bumped tx while clusters are still small, evict it from the mempool before growing them to 8×64) so we actually exercise the intended RPC path rather than accidentally merging clusters or failing earlier during tx creation.
Reviews welcome.
Merge bitcoin#35472: test: add coverage for feebumper uncomputable cl…