Skip to content

Commit de0cb3d

Browse files
committed
f reduce cltv diff in tests after changes further up
1 parent 0d287ee commit de0cb3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,9 @@ pub fn create_node_chanmgrs<'a, 'b>(node_count: usize, cfgs: &'a Vec<NodeCfg<'b>
12071207
let mut chanmgrs = Vec::new();
12081208
for i in 0..node_count {
12091209
let mut default_config = UserConfig::default();
1210+
// Set cltv_expiry_delta slightly lower to keep the final CLTV values inside one byte in our
1211+
// tests so that our script-length checks don't fail (see ACCEPTED_HTLC_SCRIPT_WEIGHT).
1212+
default_config.channel_options.cltv_expiry_delta = 6*6;
12101213
default_config.channel_options.announced_channel = true;
12111214
default_config.peer_channel_config_limits.force_announced_channel_preference = false;
12121215
default_config.own_channel_config.our_htlc_minimum_msat = 1000; // sanitization being done by the sender, to exerce receiver logic we need to lift of limit

0 commit comments

Comments
 (0)