Skip to content

Commit 9cdeea6

Browse files
committed
f rename send_payment_path as requested by Val
1 parent 9224f01 commit 9cdeea6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ impl<ChanSigner: ChannelKeys, M: Deref, T: Deref, K: Deref, F: Deref> ChannelMan
12281228
}
12291229

12301230
// Only public for testing, this should otherwise never be called direcly
1231-
pub(crate) fn send_payment_path(&self, path: &Vec<RouteHop>, payment_hash: &PaymentHash, payment_secret: &Option<PaymentSecret>, total_value: u64, cur_height: u32) -> Result<(), APIError> {
1231+
pub(crate) fn send_payment_along_path(&self, path: &Vec<RouteHop>, payment_hash: &PaymentHash, payment_secret: &Option<PaymentSecret>, total_value: u64, cur_height: u32) -> Result<(), APIError> {
12321232
log_trace!(self, "Attempting to send payment for path with next hop {}", path.first().unwrap().short_channel_id);
12331233
let (session_priv, prng_seed) = self.keys_manager.get_onion_rand();
12341234

@@ -1374,7 +1374,7 @@ impl<ChanSigner: ChannelKeys, M: Deref, T: Deref, K: Deref, F: Deref> ChannelMan
13741374
let cur_height = self.latest_block_height.load(Ordering::Acquire) as u32 + 1;
13751375
let mut results = Vec::new();
13761376
for path in route.paths.iter() {
1377-
results.push(self.send_payment_path(&path, &payment_hash, payment_secret, total_value, cur_height));
1377+
results.push(self.send_payment_along_path(&path, &payment_hash, payment_secret, total_value, cur_height));
13781378
}
13791379
let mut has_ok = false;
13801380
let mut has_err = false;

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3703,7 +3703,7 @@ fn do_test_htlc_timeout(subpath: bool) {
37033703
let route = nodes[0].router.get_route(&nodes[1].node.get_our_node_id(), None, &Vec::new(), 100000, TEST_FINAL_CLTV).unwrap();
37043704
let (_, our_payment_hash) = get_payment_preimage_hash!(&nodes[0]);
37053705
let payment_secret = PaymentSecret([0xdb; 32]);
3706-
nodes[0].node.send_payment_path(&route.paths[0], &our_payment_hash, &Some(payment_secret), 200000, CHAN_CONFIRM_DEPTH).unwrap();
3706+
nodes[0].node.send_payment_along_path(&route.paths[0], &our_payment_hash, &Some(payment_secret), 200000, CHAN_CONFIRM_DEPTH).unwrap();
37073707
check_added_monitors!(nodes[0], 1);
37083708
let mut events = nodes[0].node.get_and_clear_pending_msg_events();
37093709
assert_eq!(events.len(), 1);

0 commit comments

Comments
 (0)