@@ -171,11 +171,11 @@ fn do_test_1_conf_open(connect_style: ConnectStyle) {
171171 // tests that we properly send one in that case.
172172 let mut alice_config = UserConfig :: default ( ) ;
173173 alice_config. own_channel_config . minimum_depth = 1 ;
174- alice_config. channel_options . announced_channel = true ;
174+ alice_config. own_channel_config . announced_channel = true ;
175175 alice_config. peer_channel_config_limits . force_announced_channel_preference = false ;
176176 let mut bob_config = UserConfig :: default ( ) ;
177177 bob_config. own_channel_config . minimum_depth = 1 ;
178- bob_config. channel_options . announced_channel = true ;
178+ bob_config. own_channel_config . announced_channel = true ;
179179 bob_config. peer_channel_config_limits . force_announced_channel_preference = false ;
180180 let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
181181 let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
@@ -308,7 +308,7 @@ fn test_scid_privacy_on_pub_channel() {
308308 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
309309
310310 let mut scid_privacy_cfg = test_default_channel_config ( ) ;
311- scid_privacy_cfg. channel_options . announced_channel = true ;
311+ scid_privacy_cfg. own_channel_config . announced_channel = true ;
312312 scid_privacy_cfg. own_channel_config . negotiate_scid_privacy = true ;
313313 nodes[ 0 ] . node . create_channel ( nodes[ 1 ] . node . get_our_node_id ( ) , 100000 , 10001 , 42 , Some ( scid_privacy_cfg) ) . unwrap ( ) ;
314314 let mut open_channel = get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendOpenChannel , nodes[ 1 ] . node. get_our_node_id( ) ) ;
@@ -332,7 +332,7 @@ fn test_scid_privacy_negotiation() {
332332 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
333333
334334 let mut scid_privacy_cfg = test_default_channel_config ( ) ;
335- scid_privacy_cfg. channel_options . announced_channel = false ;
335+ scid_privacy_cfg. own_channel_config . announced_channel = false ;
336336 scid_privacy_cfg. own_channel_config . negotiate_scid_privacy = true ;
337337 nodes[ 0 ] . node . create_channel ( nodes[ 1 ] . node . get_our_node_id ( ) , 100000 , 10001 , 42 , Some ( scid_privacy_cfg) ) . unwrap ( ) ;
338338
@@ -378,7 +378,7 @@ fn test_inbound_scid_privacy() {
378378 create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 1_000_000 , 0 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
379379
380380 let mut no_announce_cfg = test_default_channel_config ( ) ;
381- no_announce_cfg. channel_options . announced_channel = false ;
381+ no_announce_cfg. own_channel_config . announced_channel = false ;
382382 no_announce_cfg. own_channel_config . negotiate_scid_privacy = true ;
383383 nodes[ 1 ] . node . create_channel ( nodes[ 2 ] . node . get_our_node_id ( ) , 100_000 , 10_000 , 42 , Some ( no_announce_cfg) ) . unwrap ( ) ;
384384 let mut open_channel = get_event_msg ! ( nodes[ 1 ] , MessageSendEvent :: SendOpenChannel , nodes[ 2 ] . node. get_our_node_id( ) ) ;
@@ -665,7 +665,7 @@ fn test_0conf_channel_with_async_monitor() {
665665
666666 create_announced_chan_between_nodes_with_value ( & nodes, 1 , 2 , 1_000_000 , 0 , InitFeatures :: known ( ) , InitFeatures :: known ( ) ) ;
667667
668- chan_config. channel_options . announced_channel = false ;
668+ chan_config. own_channel_config . announced_channel = false ;
669669 nodes[ 0 ] . node . create_channel ( nodes[ 1 ] . node . get_our_node_id ( ) , 100000 , 10001 , 42 , Some ( chan_config) ) . unwrap ( ) ;
670670 let open_channel = get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendOpenChannel , nodes[ 1 ] . node. get_our_node_id( ) ) ;
671671
@@ -811,7 +811,7 @@ fn test_0conf_close_no_early_chan_update() {
811811 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
812812
813813 // This is the default but we force it on anyway
814- chan_config. channel_options . announced_channel = true ;
814+ chan_config. own_channel_config . announced_channel = true ;
815815 open_zero_conf_channel ( & nodes[ 0 ] , & nodes[ 1 ] , Some ( chan_config) ) ;
816816
817817 // We can use the channel immediately, but won't generate a channel_update until we get confs
@@ -835,7 +835,7 @@ fn test_public_0conf_channel() {
835835 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
836836
837837 // This is the default but we force it on anyway
838- chan_config. channel_options . announced_channel = true ;
838+ chan_config. own_channel_config . announced_channel = true ;
839839 let tx = open_zero_conf_channel ( & nodes[ 0 ] , & nodes[ 1 ] , Some ( chan_config) ) ;
840840
841841 // We can use the channel immediately, but we can't announce it until we get 6+ confirmations
@@ -888,7 +888,7 @@ fn test_0conf_channel_reorg() {
888888 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
889889
890890 // This is the default but we force it on anyway
891- chan_config. channel_options . announced_channel = true ;
891+ chan_config. own_channel_config . announced_channel = true ;
892892 let tx = open_zero_conf_channel ( & nodes[ 0 ] , & nodes[ 1 ] , Some ( chan_config) ) ;
893893
894894 // We can use the channel immediately, but we can't announce it until we get 6+ confirmations
0 commit comments