@@ -2352,11 +2352,11 @@ fn test_justice_tx() {
2352
2352
let mut alice_config = UserConfig :: default ( ) ;
2353
2353
alice_config. channel_handshake_config . announced_channel = true ;
2354
2354
alice_config. channel_handshake_limits . force_announced_channel_preference = false ;
2355
- alice_config. channel_handshake_config . our_to_self_delay = 6 * 24 * 5 ;
2355
+ alice_config. channel_handshake_config . our_to_self_delay = 1008 + 288 ;
2356
2356
let mut bob_config = UserConfig :: default ( ) ;
2357
2357
bob_config. channel_handshake_config . announced_channel = true ;
2358
2358
bob_config. channel_handshake_limits . force_announced_channel_preference = false ;
2359
- bob_config. channel_handshake_config . our_to_self_delay = 6 * 24 * 3 ;
2359
+ bob_config. channel_handshake_config . our_to_self_delay = 1008 + 144 ;
2360
2360
let user_cfgs = [ Some ( alice_config) , Some ( bob_config) ] ;
2361
2361
let mut chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
2362
2362
chanmon_cfgs[ 0 ] . keys_manager . disable_revocation_policy_check = true ;
@@ -7608,14 +7608,14 @@ fn test_override_channel_config() {
7608
7608
7609
7609
// Node0 initiates a channel to node1 using the override config.
7610
7610
let mut override_config = UserConfig :: default ( ) ;
7611
- override_config. channel_handshake_config . our_to_self_delay = 200 ;
7611
+ override_config. channel_handshake_config . our_to_self_delay = 1018 ;
7612
7612
7613
7613
nodes[ 0 ] . node . create_channel ( nodes[ 1 ] . node . get_our_node_id ( ) , 16_000_000 , 12_000_000 , 42 , Some ( override_config) ) . unwrap ( ) ;
7614
7614
7615
7615
// Assert the channel created by node0 is using the override config.
7616
7616
let res = get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendOpenChannel , nodes[ 1 ] . node. get_our_node_id( ) ) ;
7617
7617
assert_eq ! ( res. channel_flags, 0 ) ;
7618
- assert_eq ! ( res. to_self_delay, 200 ) ;
7618
+ assert_eq ! ( res. to_self_delay, 1018 ) ;
7619
7619
}
7620
7620
7621
7621
#[ test]
@@ -8889,7 +8889,7 @@ fn do_test_tx_confirmed_skipping_blocks_immediate_broadcast(test_height_before_t
8889
8889
8890
8890
let conf_height = nodes[ 1 ] . best_block_info ( ) . 1 ;
8891
8891
if !test_height_before_timelock {
8892
- connect_blocks ( & nodes[ 1 ] , 24 * 6 ) ;
8892
+ connect_blocks ( & nodes[ 1 ] , BREAKDOWN_TIMEOUT as u32 ) ;
8893
8893
}
8894
8894
nodes[ 1 ] . chain_monitor . chain_monitor . transactions_confirmed (
8895
8895
& nodes[ 1 ] . get_block_header ( conf_height) , & [ ( 0 , & node_txn[ 0 ] ) ] , conf_height) ;
0 commit comments