CBlockPolicyEstimator, a fee estimator in Bitcoin Core's src/policy/fees/block_policy_estimator.h, estimates the fee rate a transaction needs to be confirmed within a target number of blocks by grouping observed transactions into buckets of similar fee rates and tracking how quickly each bucket confirms.
Sources and checks
T1Bitcoin Core src/policy/fees/block_policy_estimator.hSource code, says this directly
The BlockPolicyEstimator is used for estimating the feerate needed
Doc comment above class CBlockPolicyEstimator, read 2026-11-20
T1Bitcoin Core src/policy/fees/block_policy_estimator.hSource code, says this directly
At a high level the algorithm works by grouping transactions into buckets
Doc comment above class CBlockPolicyEstimator, read 2026-11-20
T2Bitcoin Optech topic, Fee estimationBitcoin Optech, background
Fee estimation is the process of estimating the feerate a transaction will need to pay to have a high probability
Topic summary, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/policy/fees/block_policy_estimator.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/policy/fees/block_policy_estimator.h | grep -nF 'class CBlockPolicyEstimator'Checked at block 976,759, 20 Nov 2026, 17:28 UTC: quotes 3/3, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:28 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-fees-and-mempool