-
Notifications
You must be signed in to change notification settings - Fork 128
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
feeadjuster: assert can trigger #199
Comments
Good that we put that assert in ;) |
@gallizoltan Do we need to fix this by i.e. by replacing the Partly addressed by #198 (only rebalance) |
I'm not sure what would be the best solution. Maybe we should write a |
Fixed by #525 |
Description
I've seen a curious line in the lightningd log:
I've investigated the situation and figured out what happened. It caused by the assert at line 122 in feeadjuster/feeadjuster.py:
Steps to reproduce
feeadjust
. It saves my balance inplugin.adj_balances[scid]
at line 198.At this point I have 50,000 Sats in the channel, but
plugin.adj_balances[scid]
still stores the 20,000 Sats value. Thefeeadjuster
is not aware of the incoming payments.The
feeadjuster
is subscribed to the forward event, so it reduces my stored balance by 40,000 Sats at line 173. The result will be negative: -20,000 Sats. This will trigger the assert.A possible solution
The easy way: it will not happen again if I turn off the automatic fee updates in
feeadjuster
.The text was updated successfully, but these errors were encountered: