projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
60bf1fe
)
Merge pull request #360 from TheBlueMatt/2019-07-new-warnings
author
Matt Corallo
<649246+TheBlueMatt@users.noreply.github.com>
Wed, 24 Jul 2019 22:38:34 +0000
(22:38 +0000)
committer
GitHub
<noreply@github.com>
Wed, 24 Jul 2019 22:38:34 +0000
(22:38 +0000)
Fix unused variable introduced in my changes in
bdbf5666a9d693b9bf1
src/ln/onion_utils.rs
patch
|
blob
|
history
diff --git
a/src/ln/onion_utils.rs
b/src/ln/onion_utils.rs
index 11b279073447e4118c06a96eb8912431ed47ee18..6ca8811e444aa5b3fcca7546e47a486e07f601f7 100644
(file)
--- a/
src/ln/onion_utils.rs
+++ b/
src/ln/onion_utils.rs
@@
-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).