Skip to content

Commit 7ee0410

Browse files
committed
f update comment
1 parent 6f4e0ba commit 7ee0410

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,10 +2093,10 @@ where L::Target: Logger {
20932093
}
20942094
}
20952095

2096-
// Step (1).
2097-
// Prepare the data we'll use for payee-to-payer search by
2098-
// inserting first hops suggested by the caller as targets.
2099-
// Our search will then attempt to reach them while traversing from the payee node.
2096+
// Step (1). Prep first and last hop targets.
2097+
//
2098+
// First cache all our direct channels so that we can insert them in the heap at startup.
2099+
// Then process any blinded routes, resolving their introduction node and caching it.
21002100
let mut first_hop_targets: HashMap<_, Vec<&ChannelDetails>> =
21012101
hash_map_with_capacity(if first_hops.is_some() { first_hops.as_ref().unwrap().len() } else { 0 });
21022102
if let Some(hops) = first_hops {

0 commit comments

Comments
 (0)