High fee warnings need to be reworked #5202

issue morcos openend this issue on November 3, 2014
  1. morcos commented at 10:32 pm on November 3, 2014: member

    The code had 3 separate places where high fee values are hard coded.

    1. WalletModel::prepareTransaction in qt/walletmodel.cpp rejects transactions with a fee over .1 BTC initiated from QT.
    2. nHighTransactionFeeWarning defined in wallet.h generates a warning in init.cpp if a fee amount over .01 BTC is set with -paytxfee
    3. AcceptToMemoryPool in main.cpp rejects a transaction unless the override is set if the fee is greater than 10,000 times the minRelayTxFee (= ~.023 BTC for a simple 1 input, 2 output tx).

    It seems like it would make sense to consolidate to one warning level and it should be significantly lower. (maybe 1,000 times the minRelayTxFee or just a fixed amount).

    From the standpoint of reworking the UI (#5200) there should be a warning that you could click through to allow the higher fee. This would help address @petertodd’s concerns in #4250.

    Also it seems like AcceptToMemoryPool is an odd place to have this check, perhaps we could move it somewhere else to handle an rpc initiated transaction?

  2. laanwj added the label Wallet on Nov 4, 2014
  3. MarcoFalke commented at 10:28 pm on November 9, 2015: member
    Addressing 1. in #6951.
  4. MarcoFalke commented at 7:11 pm on February 2, 2016: member
    Addressed 3. in #7084. I will fix the remaining nits hopefully next week.
  5. MarcoFalke commented at 3:10 pm on August 8, 2016: member
    Anything left to do here? @morcos
  6. MarcoFalke closed this on Sep 27, 2016

  7. 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-08 00:13 UTC

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