[Qt] Base coin control priority labels always on max confirmation target #5556

pull cozz wants to merge 1 commits into bitcoin:master from cozz:cozz17 changing 4 files +10 −7
  1. cozz commented at 4:30 PM on December 28, 2014: contributor

    The priority labels are based on nTxConfirmTarget, which seems to be confusing, as this makes the labels change when you move the slider. So change it to be based on fixed maxtarget(=25). Only the label-turns-red functionality is still based on nTxConfirmTarget.

    Fixes #5552

  2. [Qt] Base coin control priority labels always on max confirmation target 7396fb7eca
  3. luke-jr commented at 7:14 PM on December 28, 2014: member

    The mining logic doesn't use fee estimates at all (wouldn't that be funny?), and I would expect the coin control logic to behave the same as the mining logic in this regard - is that no longer the case? Does this PR restore that expected behaviour?

  4. cozz commented at 7:47 PM on December 28, 2014: contributor

    No, with this PR coin control says estimatePriority(25) is equal to "normal" priority. The mining logic has a hardcoded "normal" priority instead. This means even after this PR, the priority labels change over time. Because the normal priority threshold floats.

    The whole point of smartfee was to get rid of a hardcoded priority threshold (for the wallet, not miner), so coin control should probably reflect that. If we switch back to hardcoded priority for coin control, then you could theoretically select a "highest" priority, but you are still not allowed to send a zero-fee tx. Or you select a "lowest" and you are allowed to send it with zero-fee. Not sure if that would be less confusing.

    (If you delete the fee_estimates.dat then coin control uses the hardcoded threshold, because this is the fallback, if smartfee does not have enough data yet)

  5. cozz commented at 7:05 PM on December 29, 2014: contributor

    @zander nTxConfirmTarget is unsigned int, defined in wallet.h. Yes, qBound sounds good, thanks, I will remember next time.

  6. zander commented at 6:11 PM on December 30, 2014: none

    @cozz no need to wait for the next time :) Please consider updating this pull request (just fix the issue and push again to the same branch)

  7. jgarzik added the label GUI on Dec 31, 2014
  8. in src/txmempool.cpp:None in 7396fb7eca
     384 | @@ -385,7 +385,7 @@ CTxMemPool::CTxMemPool(const CFeeRate& _minRelayFee) :
     385 |      // to wait a day or two to save a fraction of a penny in fees.
     386 |      // Confirmation times for very-low-fee transactions that take more
     387 |      // than an hour or three to confirm are highly variable.
    


    fanquake commented at 1:00 PM on January 8, 2015:

    Can this comment be moved to txmempool.h ?

  9. laanwj commented at 3:24 PM on June 12, 2015: member

    Needs rebase, and comments addressed.

  10. jgarzik commented at 4:39 PM on September 15, 2015: contributor

    Closing due to inactivity.

  11. jgarzik closed this on Sep 15, 2015

  12. 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-19 15:15 UTC

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