-
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
Add spend_unconfirmed
param to estimateFee
#4764
Comments
@lukechilds I'm working on implementing this, I'll open a PR within the next couple days. |
@jalavosus awesome! Might be worth waiting to hear back from the maintainers to see if they're interested in accepting this change before you spend time on it. |
I don't see any reason why we shouldn't add this, so feel free to go ahead with the PR, @jalavosus. One thing I do want to mention however, is that we'd like to see RPC users to transition to the new PSBT RPCs in the Using the PSBT calls, you would instead call the My counter proposal therefore is: Do you want to add the |
@guggero, I can take a look at adding the same params to FundPsbt. I would like to say that I appreciate you taking the time to explain how it works! I'm still a bit green with the codebase, and slowly figuring out how it all links together, so the pointers on it are appreciated :) |
Support for this was added in #4905 |
In @getumbrel we want to allow users to open channels with unconfirmed outputs.
Previous discussion: getumbrel/umbrel-lightning#13
We can do this with the
spend_unconfirmed
param inopenChannel
.However we use
estimateFee
to provide fee estimates to the user in both sat/b and $. We do this by getting an estimation fromestimateFee
for a normal payment to a random address with the total balance we're expecting to open the channel with so LND should select the same inputs. We then add some weight to the absolute sat value to account for the extra size of a channel open TX to derive a fiat estimate.If we enable
spend_unconfirmed
inopenChannel
, our fee estimation logic errors due to no available inputs, even though there are available unconfirmed inputs whichopenChannel
will use.Would it be possible to add a
spend_unconfirmed
param toestimateFee
so we can still make these estimations?I don't think it needs to take into account the feerate of the previous unconfirmed TX for CPFP style calculations or anything like that, but if it does, even better.
If this isn't something you want to implement in LND, is there a way we can do some sort of dry run with
openChannel
so we can get the size of our channel open TX with some random fee rate without broadcasting it? Then we can use that to do our fee estimation in the UI.The text was updated successfully, but these errors were encountered: