Skip to content

Commit cd48991

Browse files
committed
f add note about channel_update using inbound aliases
1 parent f7bffdc commit cd48991

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,11 @@ pub(super) struct Channel<Signer: Sign> {
710710
// Our counterparty can offer us SCID aliases which they will map to this channel when routing
711711
// outbound payments. These can be used in invoice route hints to avoid explicitly revealing
712712
// the channel's funding UTXO.
713+
//
714+
// We also use this when sending our peer a channel_update that isn't to be broadcasted
715+
// publicly - allowing them to re-use their map of SCID -> channel for channel_update ->
716+
// associated channel mapping.
717+
//
713718
// We only bother storing the most recent SCID alias at any time, though our counterparty has
714719
// to store all of them.
715720
latest_inbound_scid_alias: Option<u64>,

0 commit comments

Comments
 (0)