We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Channel::set_outbound_scid_alias
1 parent 1bf27bf commit ef5a387Copy full SHA for ef5a387
lightning/src/ln/channel.rs
@@ -1000,9 +1000,10 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
1000
}
1001
1002
/// Only allowed immediately after deserialization if get_outbound_scid_alias returns 0,
1003
- /// indicating we were written by LDK prior to 0.0.106 which did not set outbound SCID aliases.
+ /// indicating we were written by LDK prior to 0.0.106 which did not set outbound SCID aliases
1004
+ /// or prior to any channel actions during `Channel` initialization.
1005
pub fn set_outbound_scid_alias(&mut self, outbound_scid_alias: u64) {
- assert_eq!(self.outbound_scid_alias, 0);
1006
+ debug_assert_eq!(self.outbound_scid_alias, 0);
1007
self.outbound_scid_alias = outbound_scid_alias;
1008
1009
0 commit comments