-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Calling update_witnesses
in a lightning wallet may disrupt channel operations
#292
Comments
Just use witness resolver which does the right thing. LN nodes were supposed to have a custom witness resolver |
Should that witness resolver be used when calling Maybe it would be easier to introduce a new |
I do not know which approach is better... The complexity will come in a fact that HTLC assignments will have commitment tx as their witness, and in v0.11 you can't have account for deeper witnesses, so everything could be very messy... I prefer v0.12 where a very different approach is used and we account all witnesses in the history with roll-back procedure... |
I think we will try to implement the approach I described on the v0.11 so that we'll be able to evaluate the involved complexity on an open PR. Worst case it will be a waste of time if we end up choosing to go on v0.12. |
A LN node needs to call
update_witnesses
from time to time, for instance to handle force closures (i.e. broadcasting a commitment TX) or blockchain reorgs. If one of such calls happens while an HTLC payment is happening, it may make it fail. This happens because commitment transactions are all set toArchived
, making it impossible for the RGB wallet to spend their allocation in the corresponding HTLC TX.The text was updated successfully, but these errors were encountered: