Skip to content

Commit 637e0d3

Browse files
committed
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.
1 parent 963f8d9 commit 637e0d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,9 @@ where L::Target: Logger {
719719
node_info.features.supports_basic_mpp()
720720
} else { false }
721721
} else { false };
722-
log_trace!(logger, "Searching for a route from payer {} to payee {} {} MPP", our_node_pubkey,
723-
payment_params.payee_pubkey, if allow_mpp { "with" } else { "without" });
722+
log_trace!(logger, "Searching for a route from payer {} to payee {} {} MPP and {} first hops {}overriding the network graph", our_node_pubkey,
723+
payment_params.payee_pubkey, if allow_mpp { "with" } else { "without" },
724+
first_hops.map(|hops| hops.len()).unwrap_or(0), if first_hops.is_some() { "" } else { "not " });
724725

725726
// Step (1).
726727
// Prepare the data we'll use for payee-to-payer search by

0 commit comments

Comments
 (0)