-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBF API is awkward (remove allow_shrinking) #1374
Comments
If we remove |
What do you mean by "it should just create a tx with the appropriate fee that spends one or more of the existing transaction's outputs"? I assume you mean one or more of the existing tx inputs, but then how does the user tell us which ones? Do we add a parameter with range of input indexes? And then in the How about for bdk_wallet 1.0 and pre-1.0 we just remove |
Yes.
We don't allow them. Just choose one. In the future even run coin selection with multiple times to figure out which is optimal to use to replace.
yes
I think this might work. |
A fee bump shouldn't try to interpret the existing transaction and replicate it -- it should just create a tx with the appropriate fee that spends one or more of the existing transaction's outputs.
The builder API should just be
tx_builder.replace(tx)
. You could call it several times to replace several transactions.Originally posted by @LLFourn in #1342 (comment)
NB I think our RBF code is probably wrong but that's another issue. I've done a lot of work in the coin selection crate to get this correct. Getting the API right here and removing footgun
allow_shrinking
is what's important.The text was updated successfully, but these errors were encountered: