bip 125 replaceable flag should require a change output #14724

issue pstratem opened this issue on November 13, 2018
  1. pstratem commented at 11:35 PM on November 13, 2018: contributor

    otherwise users think their transaction is replaceable, but bumpfee doesn't work

  2. MarcoFalke added the label Feature on Nov 13, 2018
  3. MarcoFalke added the label Wallet on Nov 13, 2018
  4. mruddy commented at 11:44 PM on November 13, 2018: contributor

    Making a change output mandatory in order to get BIP125 functionality does not seem desirable to me. For example, what if you are just consolidating some outputs down to one (e.g.- sending to long term cold storage) and want to have the ability to adjust the fee later if it ends up taking longer than you want to wait? Is this really a bug report that the bumpfee feature in the GUI wallet does not work as expected?

  5. MarcoFalke added the label Brainstorming on Nov 14, 2018
  6. promag commented at 11:05 PM on November 21, 2018: member

    The command will pay the additional fee by decreasing (or perhaps removing) its change output. If the change output is not big enough to cover the increased fee, the command will currently fail instead of adding new inputs to compensate. (A future implementation could improve this.)

    Currently it requires exactly one change output. And bumpfee can remove it (when it's considered dust) which would prevent another bumpfee. We could make bumpfee fail if replaceable=true and new change output is dust.

  7. jnewbery commented at 11:36 PM on November 21, 2018: member

    I agree that the behaviour right now isn't great, but it'd be a shame to prevent users from being able to set the flag. As things stand a user could (in theory) create a replacement transaction with additional inputs outside Bitcoin Core, and then sign using signrawtrasnactionwithwallet.

    The right fix here is to improve bumpfee so it can add additional inputs to a replacement transaction. And can we please start signaling opt-in RBF by default please? :)

    I don't see any harm in adding a warning if opt-in RBF is signaled on a transaction with no change output.

  8. bitschmidty commented at 9:44 AM on November 22, 2018: none

    There might be a consideration to the UI if "coin control features" is enabled.

    Right now the context menu for increase a transaction in QT is simply "Increase transaction fee" since there is one or zero change outputs.

    However, with coin control enabled and the ability to add inputs to the transaction this might require an additional dialog for selecting the additional inputs required to bump.

  9. achow101 closed this on Aug 10, 2022

  10. bitcoin locked this on Aug 10, 2023

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-13 15:15 UTC

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