Skip to content

Commit

Permalink
Merge pull request #360 from TheBlueMatt/2019-07-new-warnings
Browse files Browse the repository at this point in the history
Fix unused variable introduced in my changes in bdbf566
  • Loading branch information
TheBlueMatt authored Jul 24, 2019
2 parents 60bf1fe + 1db907f commit 07e927c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ln/onion_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub(super) fn build_onion_payloads(route: &Route, starting_htlc_offset: u32) ->
let mut last_short_channel_id = 0;
let mut res: Vec<msgs::OnionHopData> = Vec::with_capacity(route.hops.len());

for (idx, hop) in route.hops.iter().enumerate().rev() {
for hop in route.hops.iter().rev() {
// First hop gets special values so that it can check, on receipt, that everything is
// exactly as it should be (and the next hop isn't trying to probe to find out if we're
// the intended recipient).
Expand Down

0 comments on commit 07e927c

Please sign in to comment.