Merge pull request #1309 from TheBlueMatt/2022-02-first-hop-log
authorvalentinewallace <valentinewallace@users.noreply.github.com>
Tue, 22 Feb 2022 17:23:32 +0000 (12:23 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 17:23:32 +0000 (12:23 -0500)
Specify whether we have first-hop hints when routing

lightning/src/routing/router.rs

index 65119f0f843a5266f248ed53f1a9cdd05653a99e..eab14c1e17f3119a748f58458aa1742aa3b6b1a7 100644 (file)
@@ -719,8 +719,9 @@ where L::Target: Logger {
                        node_info.features.supports_basic_mpp()
                } else { false }
        } else { false };
-       log_trace!(logger, "Searching for a route from payer {} to payee {} {} MPP", our_node_pubkey,
-               payment_params.payee_pubkey, if allow_mpp { "with" } else { "without" });
+       log_trace!(logger, "Searching for a route from payer {} to payee {} {} MPP and {} first hops {}overriding the network graph", our_node_pubkey,
+               payment_params.payee_pubkey, if allow_mpp { "with" } else { "without" },
+               first_hops.map(|hops| hops.len()).unwrap_or(0), if first_hops.is_some() { "" } else { "not " });
 
        // Step (1).
        // Prepare the data we'll use for payee-to-payer search by