]> git.bitcoin.ninja Git - rust-lightning/commit
Provide our peers with SCID aliases and forward payments with them
authorMatt Corallo <git@bluematt.me>
Tue, 15 Feb 2022 23:27:07 +0000 (23:27 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 9 Mar 2022 19:14:39 +0000 (19:14 +0000)
commit84fa127661ff09de94ac6129dd0790d6de79f8b7
tree3bad5cc0339d636080eb36a8f23a9a8fda390e74
parent10be993f9458ff14c2085b1abe53eceb8870ce6a
Provide our peers with SCID aliases and forward payments with them

This creates an SCID alias for all of our outbound channels, which
we send to our counterparties as a part of the `funding_locked`
message and then recognize in any HTLC forwarding instructions.

Note that we generate an SCID alias for all channels, including
already open ones, even though we currently have no way of
communicating to our peers the SCID alias for already-open
channels.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reorg_tests.rs
lightning/src/util/scid_utils.rs