Skip to content

Commit 9393d1d

Browse files
committed
f undo useless(?) variable rename
1 parent 99a747d commit 9393d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,13 +809,13 @@ pub fn get_route<L: Deref>(our_node_id: &PublicKey, network: &NetworkGraph, paye
809809
if have_hop_src_in_graph {
810810
// BOLT 11 doesn't allow inclusion of features for the last hop hints, which
811811
// really sucks, cause we're gonna need that eventually.
812-
let last_path_htlc_minimum_msat: u64 = match hop.htlc_minimum_msat {
812+
let last_hop_htlc_minimum_msat: u64 = match hop.htlc_minimum_msat {
813813
Some(htlc_minimum_msat) => htlc_minimum_msat,
814814
None => 0
815815
};
816816
let directional_info = DummyDirectionalChannelInfo {
817817
cltv_expiry_delta: hop.cltv_expiry_delta as u32,
818-
htlc_minimum_msat: last_path_htlc_minimum_msat,
818+
htlc_minimum_msat: last_hop_htlc_minimum_msat,
819819
htlc_maximum_msat: hop.htlc_maximum_msat,
820820
fees: hop.fees,
821821
};

0 commit comments

Comments
 (0)