allow_shrinking not working as expected #1342
Labels
api
A breaking API change
bug
Something isn't working
documentation
Improvements or additions to documentation
Milestone
Using
build_fee_bump
to replace transaction along withallow_shrinking
results in the specified address output amount increasing and consuming all of the input utxo amount.To Reproduce
Create a transaction with one output ADDRESS and specify an x amount to be sent. sign and broadcast.
Sync wallet. Create a bump fee txbuilder and call allow_shrinking(ADDRESS) and specify a higher feerate fee_rate
Example Code:
Expected behavior
Expect the output ADDRESS to have the same amount or less. Amount will be less if the input transaction cannot cover the fee as well as the originally specified amount for ADDRESS
However output ADDRESS is having a higher amount than the origincal. It is actually consuming all the input amount.
Build environment
Additional context
Original transaction outputs
Transaction outputs after fee bump and allow shrinking:
The text was updated successfully, but these errors were encountered: