Skip to content

Commit 9873960

Browse files
committed
f - Address TODO about using different payment secrets
1 parent 38a886b commit 9873960

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3983,9 +3983,7 @@ fn do_test_holding_cell_htlc_add_timeouts(forwarded_htlc: bool) {
39833983
// Now attempt to route a second payment, which should be placed in the holding cell
39843984
let sending_node = if forwarded_htlc { &nodes[0] } else { &nodes[1] };
39853985
let (route, second_payment_hash, _, second_payment_secret) = get_route_and_payment_hash!(sending_node, nodes[2], 100000);
3986-
// TODO: Why use a different payment secret here?
3987-
let payment_secret = if forwarded_htlc { first_payment_secret } else { second_payment_secret };
3988-
sending_node.node.send_payment(&route, second_payment_hash, &Some(payment_secret)).unwrap();
3986+
sending_node.node.send_payment(&route, second_payment_hash, &Some(second_payment_secret)).unwrap();
39893987
if forwarded_htlc {
39903988
check_added_monitors!(nodes[0], 1);
39913989
let payment_event = SendEvent::from_event(nodes[0].node.get_and_clear_pending_msg_events().remove(0));

0 commit comments

Comments
 (0)