-
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
[bug]: max-commit-fee-rate-anchors
ignored at force close, much higher fee used.
#8299
Comments
Closing as "possibly mistaken". Ziggie checked the code for me and their opinion is that this couldn't possibly happen unless I did have that value set to a higher fee rate. |
Ziggie suggested I reopen the issue 😛 |
The give some background: LND will initiate a feeupdate msg in a timeperiod between 10min and 1h (randomly choosen) after the change of the lnd setting happened. Then for anchor channels we limit the feerate either to the Here poured into code: https://github.com/lightningnetwork/lnd/blob/master/lnwallet/channel.go#L8477-L8526 |
So a user set the max fee rate to 1000 sat/byte, there was a fee rate spike, causing the commit fee rate to go up to 500 sat/byte, then a force closer happened? Was the value lowered before the fee rate? The value only really needs to be set to a value high enough to widely propagate across the network. In times like this 100, should give a lot of breathing room. We have some changes planned where the user won't really need to set this value, and we'll dynamically set it based on our own mempool, and the |
You can search for this in your logs to see when the last fee update happened: |
Made this issue re that |
This I believe was the case, but I am not able to prove it. |
Background
Regarding the outstanding issue that will be fixed by #8096 still waiting to be merged, I finally received a FC by WOS, I was the opener.
Only it was published at 589sat/vB while my max-commit-fee-rate-anchors was set to 25.
Your environment
lnd
0.17.3uname -a
on *Nix) debianbtcd
,bitcoind
, or other backend bitcoindSteps to reproduce
Have channel with WOS, meet above bug, set sane limit for FC fee rate, see it completely ignored when tx is published at almost 24x the set value, overpaying 2x.
Expected behaviour
FC is published at desired max fee.
Actual behaviour
FC makes you pay 100$ in fees.
The text was updated successfully, but these errors were encountered: