From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Tue, 16 Nov 2021 16:18:20 +0000 (+0000) Subject: Merge pull request #1119 from TheBlueMatt/2021-10-less-aggressive-htlc-timeouts X-Git-Tag: v0.0.104~37 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=4d6c26248d85abe9a3c8aeefe31b4ebafd3b5bee;p=rust-lightning Merge pull request #1119 from TheBlueMatt/2021-10-less-aggressive-htlc-timeouts Be less aggressive in outbound HTLC CLTV timeout checks --- 4d6c26248d85abe9a3c8aeefe31b4ebafd3b5bee diff --cc lightning/src/ln/functional_tests.rs index 5e87aaff3,5c5a2f2af..118bb1497 --- a/lightning/src/ln/functional_tests.rs +++ b/lightning/src/ln/functional_tests.rs @@@ -3991,10 -4048,15 +3991,10 @@@ fn do_test_holding_cell_htlc_add_timeou nodes[1].node.handle_update_add_htlc(&nodes[0].node.get_our_node_id(), &payment_event.msgs[0]); commitment_signed_dance!(nodes[1], nodes[0], payment_event.commitment_msg, false); expect_pending_htlcs_forwardable!(nodes[1]); - check_added_monitors!(nodes[1], 0); - } else { - let net_graph_msg_handler = &nodes[1].net_graph_msg_handler; - let route = get_route(&nodes[1].node.get_our_node_id(), &net_graph_msg_handler.network_graph, &nodes[2].node.get_our_node_id(), Some(InvoiceFeatures::known()), None, &Vec::new(), 100000, TEST_FINAL_CLTV, &logger).unwrap(); - nodes[1].node.send_payment(&route, second_payment_hash, &Some(second_payment_secret)).unwrap(); - check_added_monitors!(nodes[1], 0); } + check_added_monitors!(nodes[1], 0); - connect_blocks(&nodes[1], TEST_FINAL_CLTV - CLTV_CLAIM_BUFFER - LATENCY_GRACE_PERIOD_BLOCKS); + connect_blocks(&nodes[1], TEST_FINAL_CLTV - LATENCY_GRACE_PERIOD_BLOCKS); assert!(nodes[1].node.get_and_clear_pending_msg_events().is_empty()); assert!(nodes[1].node.get_and_clear_pending_events().is_empty()); connect_blocks(&nodes[1], 1);