Use the correct SCID when failing HTLCs to aliased channels
authorMatt Corallo <git@bluematt.me>
Tue, 8 Mar 2022 21:55:02 +0000 (21:55 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 27 Mar 2022 17:12:17 +0000 (17:12 +0000)
commitd2256301e89a05b8f76c6a080a0ee68abd5c762e
tree29c41c99ab6442329f851fc84b81cc1ccac6cf10
parent99b7219cfc6abd4f5d62c1062f5b4876cdf160da
Use the correct SCID when failing HTLCs to aliased channels

When we fail an HTLC which was destined for a channel that the HTLC
sender didn't know the real SCID for, we should ensure we continue
to use the alias in the channel_update we provide them. Otherwise
we will leak the channel's real SCID to HTLC senders.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/priv_short_conf_tests.rs