Skip to content

Commit c820213

Browse files
committed
f - Remove remaining TODOs
1 parent 9873960 commit c820213

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7289,7 +7289,6 @@ fn test_check_htlc_underpaying() {
72897289
// Create some initial channels
72907290
create_announced_chan_between_nodes(&nodes, 0, 1, InitFeatures::known(), InitFeatures::known());
72917291

7292-
// TODO: Replace this with get_route_and_payment_hash.
72937292
let route = get_route(&nodes[0].node.get_our_node_id(), &nodes[0].net_graph_msg_handler.network_graph, &nodes[1].node.get_our_node_id(), Some(InvoiceFeatures::known()), None, &Vec::new(), 10_000, TEST_FINAL_CLTV, nodes[0].logger).unwrap();
72947293
let (_, our_payment_hash, _) = get_payment_preimage_hash!(nodes[0]);
72957294
let our_payment_secret = nodes[1].node.create_inbound_payment_for_hash(our_payment_hash, Some(100_000), 7200, 0).unwrap();
@@ -7763,8 +7762,6 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
77637762
assert_ne!(node_txn[0].input[0].previous_output, node_txn[2].input[0].previous_output);
77647763
assert_ne!(node_txn[1].input[0].previous_output, node_txn[2].input[0].previous_output);
77657764

7766-
// TODO: Determine why replacing get_route with get_route_and_payment_hash above causes
7767-
// these outputs to match differently.
77687765
assert_eq!(node_txn[0].input[0].previous_output, revoked_htlc_txn[0].input[0].previous_output);
77697766
assert_eq!(node_txn[1].input[0].previous_output, revoked_htlc_txn[2].input[0].previous_output);
77707767

lightning/src/ln/shutdown_tests.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ fn pre_funding_lock_shutdown_test() {
7171
check_closed_event!(nodes[1], 1, ClosureReason::CooperativeClosure);
7272
}
7373

74-
// TODO: Determine why get_route fails when replacing get_payment_preimage_hash with
75-
// get_route_and_payment_hash. Seems using list_usable_channels instead of None for first_hops in
76-
// get_route_and_payment_hash is the problem.
7774
#[test]
7875
fn updates_shutdown_wait() {
7976
// Test sending a shutdown with outstanding updates pending

0 commit comments

Comments
 (0)