From 637e0d34ca9ae87fd9a43aa6d0de4ea72e5ed27f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 15 Feb 2022 20:59:40 +0000 Subject: [PATCH] Specify whether we have first-hop hints when routing This is incredibly useful when debugging issues with the router, and is somewhat of an oversight currently. --- lightning/src/routing/router.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index dc2f8fd11..2cd9c79a2 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -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 -- 2.39.5