Include a route hint for public, not-yet-announced channels 2023-02-6conf-pub-hints
authorMatt Corallo <git@bluematt.me>
Thu, 9 Feb 2023 19:02:04 +0000 (19:02 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 18 Mar 2023 00:45:23 +0000 (00:45 +0000)
commitcab6c976b63070f0139761af7a05b2cecc64c8d0
treefa72f59c1e192b167bf1fb303156519ff097a6dc
parent137b77c48319a26f8bbfe30569f6b02d83058099
Include a route hint for public, not-yet-announced channels

If we have a public channel which doesn't yet have six
confirmations the network can't possibly know about it as we cannot
have announced it yet. However, because we refuse to include
route-hints if we have any public channels, we will generate
invoices that no one can pay.

Thus, if we have any public, not-yet-announced channels, include
them as a route-hint.
lightning-invoice/src/utils.rs
lightning/src/ln/functional_test_utils.rs