You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be helpful to see more logs from the user.
The user reported that they were able to open up the app on version 1.5.0. Unclear whether they were able to do it on 1.6.0 or not, their messages were ambiguous.
The error above is associated with being unable to load the ChainMonitor when constructing the dlc_manager::Manager (aka the DlcManager).
We introduced breaking changes to the ChainMonitor with version 1.5.0, but we also added some code before building the DlcManager to ensure backwards-compatibility:
// FIXME: We need to do this to ensure that we can upgrade `Node`s from LDK 0.0.114 to 0.0.116.// We should remove this workaround as soon as possible.ifletErr(e) = dlc_storage.get_chain_monitor(){
tracing::error!("Failed to load DLC ChainMonitor from storage: {e:#}");
tracing::info!("Overwriting old DLC ChainMonitor with empty one to be able to proceed");
dlc_storage.persist_chain_monitor(&dlc_manager::chain_monitor::ChainMonitor::new(0))?;}
In theory, any time we fail to load the ChainMonitor because of a breaking change, we should print these logs and overwrite the ChainMonitor with an empty one. This is not a long term fix, but we thought it was acceptable for now, since we weren't even loading the persisted ChainMonitor before these changes due to a bug in rust-dlc.
I don't really see how we could be failing on startup given all this, since the code pasted above is still present in >=1.6.0 and our rust-dlc and rust-lightning dependencies haven't been updated since then.
A theory could be that our relatively new implementation of DlcStorageProvider is not working correctly because:
we are not loading the ChainMonitor from the same spot where we persist it; or
when we call persist_chain_monitor we are not actually overwriting the existing ChainMonitor.
The app is crashing for some of our users after upgrading to 1.6.0.
The text was updated successfully, but these errors were encountered: