Skip to content

Conversation

Sjors
Copy link
Member

@Sjors Sjors commented Oct 7, 2025

Block template fees are calculated by looping over new_tmpl->vTxFees and return (early) once the fee_threshold is exceeded.

This left an edge case when the mempool is empty, which this commit fixes and adds a test for.

Also update test/functional/interface_ipc.py to reflect the new behavior,

Fixes Sjors/sv2-tp#9

@DrahtBot DrahtBot added the Mining label Oct 7, 2025
@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 7, 2025

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

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33566.

Reviews

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

@Sjors
Copy link
Member Author

Sjors commented Oct 7, 2025

This is not worth the effort to backport imo.

@Sjors
Copy link
Member Author

Sjors commented Oct 7, 2025

@sipa I ended up updating test/functional/interface_ipc.py to reflect the new behavior, but I'm not sure what the original test tried to do in #33201.

Block template fees are calculated by looping over new_tmpl->vTxFees
and return (early) once the fee_threshold is exceeded.

This left an edge case when the mempool is empty, which this commit
fixes and adds a test for.

Also update interface_ipc.py to account for the new behavior.
@Sjors Sjors force-pushed the 2025/10/wait-empty-mempool branch from 54db166 to 2e8fff3 Compare October 7, 2025 15:28
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.

sv2feedelta=0 doesn't push new templates

2 participants