Fee estimation does not use `-minrelaytxfee` as a floor #6977

issue dcousens opened this issue on November 9, 2015
  1. dcousens commented at 11:30 PM on November 9, 2015: contributor

    Currently, the mempool's minReasonableRelayFee is set to a hard coded value of 1000 (satoshis). (updated: https://github.com/bitcoin/bitcoin/blob/7f72568e6b15fc139323fb200591a50762f6df0b/src/validation.h#L54)

    This means all results from GetMinFee are based on this hard-coded value, instead of the nodes set -minrelaytxfee, even if it is higher.

    I think, at the least, if this isn't considered a network agreed basis for fee estimation, that mempool acceptance should be based on the nodes -minrelaytxfee instead/aswell.

    Relevant code: https://github.com/bitcoin/bitcoin/blob/849a7e645323062878604589df97a1cd75517eb1/src/main.cpp#L907-L919

    To verify, set -minrelaytxfee to anything, estimatefee 1 will be unchanged (as is also clear from the implementation)

  2. morcos commented at 1:31 AM on November 10, 2015: member

    @TheBlueMatt Can you take a look at this? This seems like an oversight in trying to avoid accessing the global minRelayTxFee from the mempool. It may be that we want to distinguish an incremental relay feerate and a min feerate, but they should probably both be configurable then?

  3. laanwj added the label TX fees and policy on Nov 19, 2015
  4. dcousens commented at 11:42 PM on February 9, 2016: contributor

    @morcos is this still relevant?

  5. MarcoFalke commented at 4:20 PM on February 13, 2016: member

    @dcousens This was fixed somewhat addressed in 995b9f385b935e4e9b9fa46e82f642204cc85cba.

  6. morcos commented at 9:51 PM on February 13, 2016: member

    I think this still needs to be cleaned up.

    The number used in the mempool is meant to be the same as the global minRelayTxFee and should change if you change the global with a command line option.

  7. dcousens commented at 4:02 PM on December 27, 2018: contributor

    Probably outdated

  8. MarcoFalke closed this on Dec 27, 2018

  9. DrahtBot locked this on Sep 8, 2021

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-17 09:15 UTC

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