When using the bumpfee command on a tx that was sent using "Subtract fee from amount", the current response is this error. "Transaction does not have a change output (code -1)". Since "Subtract fee from amount" was specified, the expected behavior would be to subtract the fee from the sent amount which would not require a change output.
bumpfee behavior with "Subtract fee from amount" #11122
issue raedah opened this issue on August 23, 2017-
raedah commented at 10:38 PM on August 23, 2017: none
- fanquake added the label RPC/REST/ZMQ on Aug 24, 2017
-
maflcko commented at 1:16 AM on April 26, 2020: member
bumpfee should be safe to use. Taking money from one of the recipients is not safe.
- maflcko closed this on Apr 26, 2020
-
whitslack commented at 1:20 AM on April 26, 2020: contributor
@MarcoFalke: I believe you have closed this issue without due consideration. When the user has sent a payment using
subtractfeefromamount, they have already given explicit permission to deliver less than the requested amount to the requested recipient. Thus, it would not be unsafe forbumpfeeto reduce the amount even further in this case. Besides, quite often when usingsubtractfeefromamount, the recipient is the same entity as the sender. -
maflcko commented at 1:58 AM on April 26, 2020: member
The wallet doesn't currently track if
subtractfeefromamountwas set on a tx. But I'll reopen the issue to see if someone is interested to work on this. - maflcko reopened this on Apr 26, 2020
-
Sjors commented at 9:20 PM on January 1, 2021: member
I would definitely like an option to subtract fee from the amount, e.g. to get stingy 1 sat/byte self-transfers unstuck. RPC would be the easiest place to start. GUI would require a warning that lowering the amount sent may cause the recipient (e.g. order not processed because they expected an exact amount).
-
instagibbs commented at 6:40 AM on January 2, 2021: member
I think explicitly marking in the wallet a
subtractfeefromaount, then allowing reduction of this later, is best UX? Less familiar with adding records to the wallet though. -
Sjors commented at 8:28 AM on January 2, 2021: member
That's certainly better UX. But the easiest to implement is additional option (and then in a followup make that default to
truefor such translations). -
instagibbs commented at 8:31 AM on January 2, 2021: member
Well depends on the politics...
Concept ACK either way
On Sat, Jan 2, 2021, 4:28 PM Sjors Provoost notifications@github.com wrote:
That's certainly better UX. But the easiest to implement is additional option (and then in a followup make that default to true for such translations).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/issues/11122#issuecomment-753447228, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMAFUYUWVH3RWUDJNKPVM3SX3KLBANCNFSM4DYCWIVA .
-
willcl-ark commented at 2:30 PM on April 10, 2024: member
-
Sjors commented at 5:24 PM on March 15, 2025: member
Partially. The the new
original_change_indexcan be used here, except when the original transaction didn't have change.