File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -688,8 +688,6 @@ impl Node {
688688 /// Returns the status of the [`Node`].
689689 pub fn status ( & self ) -> NodeStatus {
690690 let is_running = * self . is_running . read ( ) . unwrap ( ) ;
691- let is_listening =
692- is_running && self . config . listening_addresses . as_ref ( ) . map_or ( false , |v| !v. is_empty ( ) ) ;
693691 let current_best_block = self . channel_manager . current_best_block ( ) . into ( ) ;
694692 let locked_node_metrics = self . node_metrics . read ( ) . unwrap ( ) ;
695693 let latest_lightning_wallet_sync_timestamp =
@@ -707,7 +705,6 @@ impl Node {
707705
708706 NodeStatus {
709707 is_running,
710- is_listening,
711708 current_best_block,
712709 latest_lightning_wallet_sync_timestamp,
713710 latest_onchain_wallet_sync_timestamp,
@@ -1518,9 +1515,6 @@ impl Drop for Node {
15181515pub struct NodeStatus {
15191516 /// Indicates whether the [`Node`] is running.
15201517 pub is_running : bool ,
1521- /// Indicates whether the [`Node`] is listening for incoming connections on the addresses
1522- /// configured via [`Config::listening_addresses`].
1523- pub is_listening : bool ,
15241518 /// The best block to which our Lightning wallet is currently synced.
15251519 pub current_best_block : BestBlock ,
15261520 /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced
Original file line number Diff line number Diff line change @@ -837,8 +837,6 @@ fn do_connection_restart_behavior(persist: bool) {
837837 let node_id_b = node_b. node_id ( ) ;
838838
839839 let node_addr_b = node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ;
840- assert ! ( node_b. status( ) . is_listening) ;
841-
842840 node_a. connect ( node_id_b, node_addr_b, persist) . unwrap ( ) ;
843841
844842 let peer_details_a = node_a. list_peers ( ) . first ( ) . unwrap ( ) . clone ( ) ;
@@ -887,7 +885,6 @@ fn concurrent_connections_succeed() {
887885
888886 let node_id_b = node_b. node_id ( ) ;
889887 let node_addr_b = node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ;
890- assert ! ( node_b. status( ) . is_listening) ;
891888
892889 let mut handles = Vec :: new ( ) ;
893890 for _ in 0 ..10 {
You can’t perform that action at this time.
0 commit comments