Fix CreateTransaction in the voluntary fee case #4308

pull cozz wants to merge 1 commits into bitcoin:master from cozz:cozz14 changing 1 files +1 −1
  1. cozz commented at 7:37 PM on June 8, 2014: contributor

    A low priority tx of 226 bytes now pays 2260 satoshis in fee because of #3959. But if you set the voluntary fee to 10000 satoshis per kilobyte, CreateTransaction adds 10000 satoshis as fee instead of 2260.

    At the end of the loop we check both, nMinFee and nPayFee, so start the loop always with zero fee.

  2. Fix CreateTransaction in the voluntary fee case 05e87c57e1
  3. BitcoinPullTester commented at 8:06 PM on June 8, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/05e87c57e13449c6fa383cd7df0d6b56905a294a for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  4. laanwj added the label Wallet on Jun 9, 2014
  5. laanwj commented at 6:27 AM on June 10, 2014: member

    @gavinandresen This changes your new fee code, can you comment here?

  6. gavinandresen commented at 6:13 PM on June 16, 2014: contributor

    This would change the meaning of -paytxfee.

    -paytxfee has meant "pay at least this many BTC (and pay this many BTC/kilobyte, if the transaction is larger than 1,000 bytes)."

    I think we should deprecate -paytxfee once -txconfirmtarget is merged, so I don't think we should change the behavior now.

  7. cozz commented at 6:41 PM on June 16, 2014: contributor

    ok closing this. But then the descriptions in help and GUI have to be changed. It only says "Fee per kB to add to transactions you send".

    Coin control also needs to be fixed, because currently cc assumes we never round. But in the voluntary case, we round now up to 1000 bytes. Else we never round.

    I will submit a pr.

  8. cozz closed this on Jun 16, 2014

  9. cozz commented at 8:46 PM on June 16, 2014: contributor

    I fixed now coin control here #4314. Lets forget about the help descriptions for now, there is enough time until 0.10 release to fix them.

  10. MarcoFalke 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