Skip to content

Commit 0d4a06f

Browse files
committed
f use local field
1 parent aa3c727 commit 0d4a06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ where L::Target: Logger {
29782978
if let Some((first_channels, _)) = first_hop_targets.get(&target) {
29792979
for details in first_channels {
29802980
if let CandidateRouteHop::FirstHop(FirstHopCandidate { details: last_hop_details, .. })
2981-
= ordered_hops.last().unwrap().0.candidate
2981+
= candidate
29822982
{
29832983
if details.get_outbound_payment_scid() == last_hop_details.get_outbound_payment_scid() {
29842984
ordered_hops.last_mut().unwrap().1 = details.counterparty.features.to_context();

0 commit comments

Comments
 (0)