-
Notifications
You must be signed in to change notification settings - Fork 384
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
A ChannelManager is stale compared to the current ChannelMonitor! #3615
Comments
Could you provide some more information regarding the context in which you're seeing this? What persistence backend are you using? Are you somehow killing the node during runtime or are you making sure to always shut it down properly, eg., before restarting? |
Do you have logs for the run before this one? Also did the previous run crash? |
Yes it did crash but unfortunately I don't have the logs from that. Is there any way to recover the channel instead of closing it? |
Unfortunately I don't think there is a way to discover without closing in this scenario, as essential updates that need to be persisted didn't make it to disk. Note that we're working on a larger refactor that would avoid this being possible at all, but for now you'll need to make sure that your node doesn't randomly crash or is shutdown. Just to confirm: are you using LDK Node, or your own LDK-based implementation? |
We are running our own LDK-based implementation |
Alright, thanks, transferred the issue to the general |
You should ensure that you're fully complying with the persistence APIs. Specifically that if you indicate something was durably stored to disk that there's no way for it to not be used on reload (rather than a previous version). On most platforms this means fsync'ing the file and the directory that contains it. |
Hi,
we are experiencing this issue, what could be the cause and is there any way to mitigate it?
kind regards
The text was updated successfully, but these errors were encountered: