@@ -1506,7 +1506,7 @@ fn test_basic_channel_reserve() {
1506
1506
let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
1507
1507
let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ None , None ] ) ;
1508
1508
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
1509
- let chan = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: supported ( ) , InitFeatures :: supported ( ) ) ;
1509
+ let chan = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
1510
1510
1511
1511
let chan_stat = get_channel_value_stat ! ( nodes[ 0 ] , chan. 2 ) ;
1512
1512
let their_channel_reserve = chan_stat. channel_reserve_msat ;
@@ -1538,8 +1538,8 @@ fn test_channel_reserve_violation_close_pending_htlc() {
1538
1538
let node_cfgs = create_node_cfgs ( 3 , & chanmon_cfgs) ;
1539
1539
let node_chanmgrs = create_node_chanmgrs ( 3 , & node_cfgs, & [ None , None , None ] ) ;
1540
1540
let mut nodes = create_network ( 3 , & node_cfgs, & node_chanmgrs) ;
1541
- let chan_1 = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: supported ( ) , InitFeatures :: supported ( ) ) ;
1542
- let _ = create_announced_chan_between_nodes_with_value ( & nodes, 1 , 2 , 100000 , 95000000 , InitFeatures :: supported ( ) , InitFeatures :: supported ( ) ) ;
1541
+ let chan_1 = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
1542
+ let _ = create_announced_chan_between_nodes_with_value ( & nodes, 1 , 2 , 100000 , 95000000 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
1543
1543
1544
1544
macro_rules! get_route_and_payment_hash {
1545
1545
( $recv_value: expr) => { {
@@ -5859,7 +5859,7 @@ fn test_holding_cell_htlc_with_pending_fee_update() {
5859
5859
let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
5860
5860
let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ None , None ] ) ;
5861
5861
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
5862
- let chan = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: supported ( ) , InitFeatures :: supported ( ) ) ;
5862
+ let chan = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
5863
5863
5864
5864
// First nodes[0] generates an update_fee, setting the channel's
5865
5865
// pending_update_fee.
@@ -6193,7 +6193,7 @@ fn test_update_add_htlc_bolt2_receiver_check_cltv_expiry() {
6193
6193
let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ None , None ] ) ;
6194
6194
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
6195
6195
create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 100000 , 95000000 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
6196
- let route = nodes[ 0 ] . router . get_route ( & nodes[ 1 ] . node . get_our_node_id ( ) , None , & [ ] , 3999999 , TEST_FINAL_CLTV ) . unwrap ( ) ;
6196
+ let route = nodes[ 0 ] . router . get_route ( & nodes[ 1 ] . node . get_our_node_id ( ) , None , & [ ] , 399999 , TEST_FINAL_CLTV ) . unwrap ( ) ;
6197
6197
let ( _, our_payment_hash) = get_payment_preimage_hash ! ( nodes[ 0 ] ) ;
6198
6198
nodes[ 0 ] . node . send_payment ( & route, our_payment_hash, & None ) . unwrap ( ) ;
6199
6199
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
0 commit comments