Does fee estimation ignore empty blocks? #7769

issue RHavar opened this issue on March 30, 2016
  1. RHavar commented at 3:08 AM on March 30, 2016: contributor

    Sorry for the bad form, probably more of a question. But I was reading over the code trying to figure out why the fee estimates in 0.12 are seemingly such over-estimates, and can't find in the logic anywhere it would ignore empty blocks?

    By empty block, I mean something like: https://www.blocktrail.com/btc/block/404921

    which is probably pretty useless for fee estimation purposes, and contributing to the effect that bitcoin can never estimate the fees required for 1 confirmation.

  2. morcos commented at 3:22 AM on March 30, 2016: member

    They are higher in 0.12 because they use a more conservative 95% threshold. This is in part because you have to have a very high threshold to react quickly to changes in market conditions.

    No fee estimation does not ignore empty blocks. It doesn't really make sense to, the more empty blocks there are, the longer it'll take for your transaction to be included, that seems like information that should be conveyed.

    It all comes down to what you really want to be asking when you ask "estimatefee X". I interpreted the question to be what feerate do I need to have a very high likelihood of being included in one of the next X blocks. In which case when X=1 there is really no fee that is high enough as your transaction may not have even propagated before the next block is found.

    There has already been a request to add more configurability so that perhaps you could specify the threshold and ask two questions, like I want to know a 50% likelihood of 2 blocks and 99% of 5 blocks and then you could take the max of the fee rates returned. I'm hoping to implement that for 0.13.

  3. RHavar commented at 3:25 AM on March 30, 2016: contributor

    Thanks, that makes sense

  4. RHavar closed this on Mar 30, 2016

  5. DrahtBot locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me