-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support spend_unconfirmed in EstimateFee and FundPsbt #4905
Support spend_unconfirmed in EstimateFee and FundPsbt #4905
Conversation
fd8ffb5
to
28f7d72
Compare
c90afb7
to
84caf9d
Compare
84caf9d
to
00bbb15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for picking this up!
Did a first pass, looks pretty good.
Main comments are about splitting the commit and reusing existing code.
I'd love to see this change, it would help me doing CPFPs a lot |
Ping @mrfelton. If you're still available to work on this, we can try to get it merged for v0.13. |
Sure, I'll take a look. Missed the last batch of updates on this one somehow. Have been running with this patch for some months though. |
00bbb15
to
f57c98b
Compare
f57c98b
to
2f80283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very useful feature, thank you. LGTM 💯
This is a rebased version of #4845. I'm not sure what happened to that original PR but it seems the repo where it came from is no longer online.
FundPsbt
andEstimateFee
now support spending from the underlying wallet using unconfirmed inputs or inputs with a specific number of minumum confirmations; this is made possible by adding the paramsmin_confs
andspend_unconfirmed
to the underlying proto messages, and implementing checks in their function calls.It changes the interface of
WalletController
slightly; it adds the paramminConfs
toCreateSimpleTx
inside theWalletController
interface, thus allowing the underlying implementation of the function to passminConfs
to its underlying wallet'screatesimpletx
implementation (if possible and/or desired).