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
Add DecodeError::DangerousValue for decoding invalid channel managers
This would help distinguish different types of errors when deserialzing
a channel manager. InvalidValue was used previously but this could be
because it is an old serialization format, whereas DangerousValue is a
lot more clear on why the deserialization failed.
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -10927,13 +10927,13 @@ where
10927
10927
log_error!(logger, " client applications must ensure that ChannelMonitor data is always available and the latest to avoid funds loss!");
10928
10928
log_error!(logger, " Without the latest ChannelMonitor we cannot continue without risking funds.");
10929
10929
log_error!(logger, " Please ensure the chain::Watch API requirements are met and file a bug report at https://github.com/lightningdevkit/rust-lightning");
10930
-
return Err(DecodeError::InvalidValue);
10930
+
return Err(DecodeError::DangerousValue);
10931
10931
}
10932
10932
} else {
10933
10933
// We shouldn't have persisted (or read) any unfunded channel types so none should have been
0 commit comments