Skip to content

Commit 515d757

Browse files
committed
f use local field
1 parent eedbc37 commit 515d757

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
@@ -2980,7 +2980,7 @@ where L::Target: Logger {
29802980
if let Some((first_channels, _)) = first_hop_targets.get(&target) {
29812981
for details in first_channels {
29822982
if let CandidateRouteHop::FirstHop(FirstHopCandidate { details: last_hop_details, .. })
2983-
= ordered_hops.last().unwrap().0.candidate
2983+
= candidate
29842984
{
29852985
if details.get_outbound_payment_scid() == last_hop_details.get_outbound_payment_scid() {
29862986
ordered_hops.last_mut().unwrap().1 = details.counterparty.features.to_context();

0 commit comments

Comments
 (0)