Setting minrelaytxfee to 1/10th of the default gives an error that it is "too high". #22756

issue rebroad opened this issue on August 20, 2021
  1. rebroad commented at 2:41 PM on August 20, 2021: contributor

    Setting minrelaytxfee=100 in bitcoin.conf gives the following error on start up:-

    image

    Not sure how setting it to LOWER than the default can cause a "too high" error.

  2. rebroad added the label Bug on Aug 20, 2021
  3. MarcoFalke commented at 2:46 PM on August 20, 2021: member

    100 BTC/kvB seems high

  4. MarcoFalke closed this on Aug 20, 2021

  5. fanquake removed the label Bug on Aug 20, 2021
  6. rebroad commented at 11:32 AM on August 22, 2021: contributor

    100 BTC/kvB seems high

    but the default is 1000 - and this surely does not mean 1000 BTC/kvB

  7. ghost commented at 12:05 PM on August 22, 2021: none

    default value for minrelaytxfee is 0.00001

  8. ghost commented at 12:30 PM on August 22, 2021: none
    minrelaytxfee is FormatMoney(DEFAULT_MIN_RELAY_TX_FEE))
    

    https://github.com/bitcoin/bitcoin/blob/e9d6eb1b8071805cec1cc4e1352a13a7adc55ca8/src/init.cpp#L530

    DEFAULT_MIN_RELAY_TX_FEE is 1000
    

    https://github.com/bitcoin/bitcoin/blob/e9d6eb1b8071805cec1cc4e1352a13a7adc55ca8/src/validation.h#L63

    FormatMoney(1000) is 0.00001
    

    https://github.com/bitcoin/bitcoin/blob/e9d6eb1b8071805cec1cc4e1352a13a7adc55ca8/src/util/moneystr.cpp#L12

    COIN = 100000000
    
    quotient = 0
    remainder = 1000
    
    %08d = 00001000
    %d = 0
    
    Before trim = 0.00001000
    
    After trim = 0.00001
    
  9. jonatack commented at 12:58 PM on August 22, 2021: member

    Right, the default is 0.0001 BTC/kvB

    $ ./src/bitcoind -h | grep -A2 minrelay
      -minrelaytxfee=<amt>
           Fees (in BTC/kvB) smaller than this are considered zero fee for
           relaying, mining and transaction creation (default: 0.00001)
    
  10. fanquake locked this on Aug 23, 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-22 18:14 UTC

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