From 5260ea29114f9bf0c4bc99295231447218a4f896 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 30 Jul 2022 14:00:42 +0930 Subject: [PATCH] pytest: make sure we never break channels in multhtlc test. It's perfectlty safe to extend the timeout to 100 blocks, so let's do it. Signed-off-by: Rusty Russell --- tests/test_closing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 8d351094e..66594687d 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -2804,13 +2804,15 @@ def setup_multihtlc_test(node_factory, bitcoind): def route_to_l7(src): """Route from l1, l2 or l3 to l7""" - return [{'id': l4.info['id'], 'channel': src.get_channel_scid(l4), 'amount_msat': "100002002msat", 'delay': 21}, + # We give extra CLTV on first hop, so we never break channel. + return [{'id': l4.info['id'], 'channel': src.get_channel_scid(l4), 'amount_msat': "100002002msat", 'delay': 115}, {'id': l5.info['id'], 'channel': l4.get_channel_scid(l5), 'amount_msat': "100001001msat", 'delay': 15}, {'id': l7.info['id'], 'channel': l5.get_channel_scid(l7), 'amount_msat': "100000000msat", 'delay': 9}] def route_to_l1(src): """Route from l6 or l7 to l1""" - return [{'id': l5.info['id'], 'channel': src.get_channel_scid(l5), 'amount_msat': "100002002msat", 'delay': 21}, + # We give extra CLTV on first hop, so we never break channel. + return [{'id': l5.info['id'], 'channel': src.get_channel_scid(l5), 'amount_msat': "100002002msat", 'delay': 115}, {'id': l4.info['id'], 'channel': l5.get_channel_scid(l4), 'amount_msat': "100001001msat", 'delay': 15}, {'id': l1.info['id'], 'channel': l4.get_channel_scid(l1), 'amount_msat': "100000000msat", 'delay': 9}]