Add fake scid namespace for intercepted HTLCs
authorValentine Wallace <vwallace@protonmail.com>
Fri, 4 Nov 2022 15:54:57 +0000 (11:54 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Nov 2022 17:43:09 +0000 (12:43 -0500)
commit3a1268e177feaaea01a38a5d3f2475f5f770ae9d
treecb9b4d9ac2b92c82bd67446aefaf391ca69f82d9
parent129e1f6be24485497990ad8c119f2b20f22861e8
Add fake scid namespace for intercepted HTLCs

This is useful for LSPs who wish to create a just-in-time channel for end users
receiving a lightning payment. These fake scids will be encoded into route
hints in end user invoices, and signal to LDK to create an event triggering the
JIT channel, after which the payment will be received.

Co-authored-by: John Cantrell <johncantrell97@gmail.com>
Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
lightning/src/util/scid_utils.rs