Remove requireGreater argment from TxConfirmStats::EstimateMedianVal() #9118

pull dooglus wants to merge 1 commits into bitcoin:master from dooglus:remove-dead-code changing 2 files +17 −24
  1. dooglus commented at 9:07 PM on November 9, 2016: contributor

    TxConfirmStats::EstimateMedianVal() is only ever called with requireGreater set to true so that function argument can be removed, along with the logic which depends on its value.

    Fixes what's left of #9104 after #9111 fixed half of it.

  2. Remove requireGreater argment from TxConfirmStats::EstimateMedianVal()
    TxConfirmStats::EstimateMedianVal() is only ever called with
    requireGreater set to true so that function argument can be removed,
    along with the logic which depends on its value.
    df9b2bb97d
  3. laanwj added the label Mempool on Nov 9, 2016
  4. MarcoFalke added the label TX fees and policy on Nov 9, 2016
  5. MarcoFalke removed the label Mempool on Nov 9, 2016
  6. MarcoFalke commented at 9:19 PM on November 9, 2016: member

    Concept ACK on removing dead code when it is no longer used, but you might want to check with @morcos to make sure there is no use of that logic in the future.

  7. MarcoFalke added the label Refactoring on Nov 9, 2016
  8. morcos commented at 9:20 PM on November 9, 2016: member

    NACK

    This only became dead code 2 days ago. It was tricky to get right the first time, and I'd like to see a compelling argument why this functionality wouldn't be necessary in future improvements to fee estimation before we remove it.

    I agree that if it stays unused, it should eventually be removed as the code is harder to understand with it, but I see no harm in leaving it around for a release or two until we see if there are further changes to fee estimation happening.

  9. laanwj commented at 9:27 PM on November 9, 2016: member

    Closing, agree that there is no rush to remove this. I didn't realize that this only became unused two days ago.

  10. laanwj closed this on Nov 9, 2016

  11. 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-16 00:15 UTC

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