mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Fix unused variable introduced in my changes in bdbf5666a9
The original was written by Tamas, but I made one small tweak and broke the warning-free-ness of it.
This commit is contained in:
parent
19a0f8438d
commit
1db907f47a
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Reference in a new issue