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
log_error!(logger,"Failed to set up wallet: {}", e);
BuildError::WalletSetupFailed
})?;
when trying to load the BDK wallet. I tried it out and it does fail at this point if the node is restarted with a different network. Should we still add the check on the LDK-Node side to not depend on this check from the BDK wallet? if so, I can try it (:
I tried it out and it does fail at this point if the node is restarted with a different network.
Yes, we fail at this point and would also later when we try to intialize ChannelManager or monitors with a changed network. While the behavior changed a bit over time since this issue was created, it's now mostly about clearly communicating what happened to the user.
Should we still add the check on the LDK-Node side to not depend on this check from the BDK wallet? if so, I can try it (:
Sure, I guess by now it would be mostly to create a new more conclusive error type that gets returned for the respective variants of BDK's LoadError that indicate network switiching.
Activity
tnull commentedon Oct 3, 2023
Sames goes for seed switching.
elnosh commentedon Mar 15, 2025
I was taking a look at this and although not explicitly by
NodeBuilder, I noticed this check is kind of already happening here:ldk-node/src/builder.rs
Lines 896 to 905 in 22cb1df
BDKwallet. I tried it out and it does fail at this point if the node is restarted with a different network. Should we still add the check on theLDK-Nodeside to not depend on this check from theBDKwallet? if so, I can try it (:tnull commentedon Mar 17, 2025
Yes, we fail at this point and would also later when we try to intialize
ChannelManageror monitors with a changed network. While the behavior changed a bit over time since this issue was created, it's now mostly about clearly communicating what happened to the user.Sure, I guess by now it would be mostly to create a new more conclusive error type that gets returned for the respective variants of BDK's
LoadErrorthat indicate network switiching.tnull commentedon Mar 25, 2025
Closed by #485