From: Matt Corallo Date: Tue, 15 Feb 2022 20:59:40 +0000 (+0000) Subject: Specify whether we have first-hop hints when routing X-Git-Tag: v0.0.105~8^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=637e0d34ca9ae87fd9a43aa6d0de4ea72e5ed27f;p=rust-lightning 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. --- 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