Do not use hard-coded AllowFree for free transactions. #6131

pull morcos wants to merge 1 commits into bitcoin:master from morcos:fix-sendfree changing 2 files +4 −9
  1. morcos commented at 5:09 PM on May 13, 2015: member

    The hard coded AllowFree threshold is not suitable for determining whether a free transaction will be confirmed in a reasonable time.

    If estimatePriority returns -1 it either means there isn't yet enough data to estimate or there is no priority that is high enough to be confirmed by the desired target, in either case it's better to not send a zero fee transaction.

  2. Do not use hard-coded AllowFree for free transactions.
    The hard coded AllowFree threshold is not suitable for determining whether a free transaction will be confirmed in a reasonable time.
    e1bd8b8c49
  3. morcos force-pushed on May 13, 2015
  4. laanwj added the label Wallet on May 15, 2015
  5. laanwj commented at 11:01 AM on May 29, 2015: member

    The GUI option at least is called "Send without fee if possible", it explicitly warns that the transaction may not confirm soon. I may be misunderstanding what this change does, but if not, I'm not sure it needs additional protection.

  6. morcos commented at 6:55 PM on July 2, 2015: member

    Well, its inconsistent now. It uses the result of estimatePriority to determine if it can send free, unless estimatePriority doesn't give you an answer, in which case it'll use AllowFree. This can cause the odd behavior of being more likely to send a low priority transaction for free if you're asking to be confirmed in 1 block (for which no priority is big enough) than if you're asking to be confirmed in 10 blocks (for which your priority isn't big enough). It should either use AllowFree for everything, which would be the literal interpretation of "if possible" or it should use estimatePriority and interpret -1 as an indication that you can not send for free. The latter would be more useful and is what this pull does. Sorry for the delayed response.

  7. jgarzik commented at 7:33 PM on July 23, 2015: contributor

    ut ACK. Makes the gui code consistent with the other free check in the wallet code.

  8. pstratem commented at 5:46 PM on September 15, 2015: contributor

    concept ACK ut code ACK

  9. pstratem commented at 5:53 PM on September 15, 2015: contributor

    Probably needs a slightly longer comment to explain what dPriorityNeeded < 0 means.

  10. morcos commented at 8:59 PM on October 16, 2015: member

    This is no longer necessary with #6134

  11. morcos closed this on Oct 16, 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-21 15:15 UTC

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