diff --git a/node-launchpad/src/components/popup/manage_nodes.rs b/node-launchpad/src/components/popup/manage_nodes.rs index 9aa7f1d73b..0b0657c834 100644 --- a/node-launchpad/src/components/popup/manage_nodes.rs +++ b/node-launchpad/src/components/popup/manage_nodes.rs @@ -285,7 +285,7 @@ impl Component for ManageNodes { let help = Paragraph::new(vec![ Line::raw(format!( "Note: Each node will use a small amount of CPU Memory and Network Bandwidth. \ - We recommend starting no more than 5 at a time (max {MAX_NODE_COUNT} nodes)." + We recommend starting no more than 2 at a time (max {MAX_NODE_COUNT} nodes)." )), Line::raw(""), Line::raw("▲▼ to change the number of nodes to start."), diff --git a/node-launchpad/src/node_mgmt.rs b/node-launchpad/src/node_mgmt.rs index 9d26b25b61..2e2be18dda 100644 --- a/node-launchpad/src/node_mgmt.rs +++ b/node-launchpad/src/node_mgmt.rs @@ -297,6 +297,21 @@ async fn upgrade_nodes(args: UpgradeNodesArgs) { } async fn remove_nodes(services: Vec, action_sender: UnboundedSender) { + // First we stop the nodes + if let Err(err) = + sn_node_manager::cmd::node::stop(None, vec![], services.clone(), VerbosityLevel::Minimal) + .await + { + error!("Error while stopping services {err:?}"); + send_action( + action_sender.clone(), + Action::StatusActions(StatusActions::ErrorRemovingNodes { + services: services.clone(), + raw_error: err.to_string(), + }), + ); + } + if let Err(err) = sn_node_manager::cmd::node::remove(false, vec![], services.clone(), VerbosityLevel::Minimal) .await