Skip to content

Commit ef5a387

Browse files
committed
Update documentation on Channel::set_outbound_scid_alias
...and replace an assertion with a debug_assertion
1 parent 1bf27bf commit ef5a387

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1000,9 +1000,10 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
10001000
}
10011001

10021002
/// 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.
1003+
/// 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.
10041005
pub fn set_outbound_scid_alias(&mut self, outbound_scid_alias: u64) {
1005-
assert_eq!(self.outbound_scid_alias, 0);
1006+
debug_assert_eq!(self.outbound_scid_alias, 0);
10061007
self.outbound_scid_alias = outbound_scid_alias;
10071008
}
10081009

0 commit comments

Comments
 (0)