Skip to content

Commit e2c3704

Browse files
f - Add counterparty_node_id to short_to_id map naming fix
1 parent b0975eb commit e2c3704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
22462246
break Some(("Don't have available channel for forwarding as requested.", 0x4000 | 10, None));
22472247
}
22482248
},
2249-
Some((_cp_id, id)) => Some(id.clone()),
2249+
Some((_cp_id, chan_id)) => Some(chan_id.clone()),
22502250
};
22512251
let (chan_update_opt, forwardee_cltv_expiry_delta) = if let Some(forwarding_id) = forwarding_id_opt {
22522252
let chan = channel_state.as_mut().unwrap().by_id.get_mut(&forwarding_id).unwrap();
@@ -2427,7 +2427,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
24272427

24282428
let id = match channel_lock.short_to_chan_info.get(&path.first().unwrap().short_channel_id) {
24292429
None => return Err(APIError::ChannelUnavailable{err: "No channel available with first hop!".to_owned()}),
2430-
Some((_cp_id, id)) => id.clone(),
2430+
Some((_cp_id, chan_id)) => chan_id.clone(),
24312431
};
24322432

24332433
macro_rules! insert_outbound_payment {

0 commit comments

Comments
 (0)