File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,6 @@ impl Node {
687687 /// Returns the status of the [`Node`].
688688 pub fn status ( & self ) -> NodeStatus {
689689 let is_running = * self . is_running . read ( ) . unwrap ( ) ;
690- let is_listening = is_running;
691690 let current_best_block = self . channel_manager . current_best_block ( ) . into ( ) ;
692691 let locked_node_metrics = self . node_metrics . read ( ) . unwrap ( ) ;
693692 let latest_lightning_wallet_sync_timestamp =
@@ -705,7 +704,6 @@ impl Node {
705704
706705 NodeStatus {
707706 is_running,
708- is_listening,
709707 current_best_block,
710708 latest_lightning_wallet_sync_timestamp,
711709 latest_onchain_wallet_sync_timestamp,
@@ -1516,9 +1514,6 @@ impl Drop for Node {
15161514pub struct NodeStatus {
15171515 /// Indicates whether the [`Node`] is running.
15181516 pub is_running : bool ,
1519- /// Indicates whether the [`Node`] is listening for incoming connections on the addresses
1520- /// configured via [`Config::listening_addresses`].
1521- pub is_listening : bool ,
15221517 /// The best block to which our Lightning wallet is currently synced.
15231518 pub current_best_block : BestBlock ,
15241519 /// 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 @@ -838,10 +838,6 @@ fn do_connection_restart_behavior(persist: bool) {
838838
839839 let node_addr_b = node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ;
840840
841- while !node_b. status ( ) . is_listening {
842- std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 10 ) ) ;
843- }
844-
845841 node_a. connect ( node_id_b, node_addr_b, persist) . unwrap ( ) ;
846842
847843 let peer_details_a = node_a. list_peers ( ) . first ( ) . unwrap ( ) . clone ( ) ;
@@ -891,10 +887,6 @@ fn concurrent_connections_succeed() {
891887 let node_id_b = node_b. node_id ( ) ;
892888 let node_addr_b = node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ;
893889
894- while !node_b. status ( ) . is_listening {
895- std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 10 ) ) ;
896- }
897-
898890 let mut handles = Vec :: new ( ) ;
899891 for _ in 0 ..10 {
900892 let thread_node = Arc :: clone ( & node_a) ;
You can’t perform that action at this time.
0 commit comments