Skip to content

test: add functional test for bumpfee with enormous unconfirmed clusters - #34961

Closed
cprkrn wants to merge 1 commit into
bitcoin:masterfrom
cprkrn:test-feebumper-enormous-cluster
Closed

cprkrn wants to merge 1 commit into
bitcoin:masterfrom
cprkrn:test-feebumper-enormous-cluster

Conversation

@cprkrn

@cprkrn cprkrn commented Mar 31, 2026

Copy link
Copy Markdown

Adds functional test coverage for the CheckFeeRate() error path where calculateCombinedBumpFee() returns nullopt (line 84 of feebumper.cpp).

Creates 9 independent 57-tx unconfirmed chains (each under MAX_CLUSTER_COUNT_LIMIT), has the wallet spend from all of them, and verifies bumpfee returns the expected error when GatherClusters() aggregates >500 total txs.

Closes #34902

@DrahtBot

DrahtBot commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Add test coverage for the CheckFeeRate() error path where
calculateCombinedBumpFee() returns nullopt due to GatherClusters()
finding >500 total transactions across input clusters.

The test creates 9 independent unconfirmed chains (57 txs each, under
the 64-tx cluster limit), has the wallet spend from all of them (which
fails to broadcast but stays in the wallet), then verifies bumpfee
returns the expected error.

Closes bitcoin#34902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for bump fee calculation failure in feebumper

2 participants