Fix priority calculation in CreateTransaction #5675

pull morcos wants to merge 1 commits into bitcoin:master from morcos:freePriorityCalc changing 1 files +6 −2
  1. morcos commented at 5:33 PM on January 16, 2015: member

    The wallet code optimistically assumes that all coin ages will increase at the next block, but this is not true for inputs that are in the mempool. This change should match the calculation for the low priority reject code and prevent the wallet from thinking it can send a free transaction when it wouldn't be accepted to the mempool.

  2. Fix priority calculation in CreateTransaction
    Make this projection of priority in 1 block match the calculation in the low priority reject code.
    2d9b0b7f03
  3. laanwj added the label Wallet on Jan 19, 2015
  4. gmaxwell commented at 3:01 PM on January 20, 2015: contributor

    utACK.

  5. laanwj commented at 3:58 PM on January 20, 2015: member

    utACK

  6. morcos commented at 3:29 AM on January 21, 2015: member

    @laanwj you asked in IRC about other pulls for 0.10, I think this should go in. Otherwise the "send as free transaction if possible" logic is broken.

  7. laanwj commented at 8:45 AM on January 21, 2015: member

    @morcos OK, thanks for letting me know, I'll add the 0.10 milestone

  8. laanwj added this to the milestone 0.10.0 on Jan 21, 2015
  9. wtogami commented at 6:32 AM on January 24, 2015: contributor

    utACK

  10. laanwj referenced this in commit b6347bf813 on Feb 3, 2015
  11. laanwj merged this on Feb 3, 2015
  12. laanwj closed this on Feb 3, 2015

  13. laanwj referenced this in commit 4e2b1fff98 on Feb 3, 2015
  14. eduffield222 referenced this in commit 8b5d0e1e1b on Mar 4, 2015
  15. 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-18 21:15 UTC

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