Skip to content

Commit

Permalink
chore(launchpad): evm network as parameter to maintain_n_running_nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzi committed Oct 21, 2024
1 parent c4796c1 commit 033903d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion node-launchpad/src/node_mgmt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::action::{Action, StatusActions};
use crate::connection_mode::ConnectionMode;
use color_eyre::eyre::{eyre, Error};
use sn_evm::RewardsAddress;
use sn_evm::{EvmNetwork, RewardsAddress};
use sn_node_manager::{
add_services::config::PortRange, config::get_node_registry_path, VerbosityLevel,
};
Expand Down Expand Up @@ -291,6 +291,7 @@ async fn scale_down_nodes(config: &NodeConfig, count: u16) {
config.data_dir_path.clone(),
true,
None,
Some(EvmNetwork::ArbitrumSepolia), //FIXME: should come from an UI element.
config.home_network,
false,
None,
Expand Down Expand Up @@ -365,6 +366,7 @@ async fn add_nodes(
config.data_dir_path.clone(),
true,
None,
Some(EvmNetwork::ArbitrumSepolia), //FIXME: Should come from an UI element
config.home_network,
false,
None,
Expand Down
6 changes: 3 additions & 3 deletions sn_node_manager/src/cmd/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use color_eyre::{eyre::eyre, Help, Result};
use colored::Colorize;
use libp2p_identity::PeerId;
use semver::Version;
use sn_evm::{CustomNetwork, EvmNetwork, RewardsAddress};
use sn_evm::{EvmNetwork, RewardsAddress};
use sn_logging::LogFormat;
use sn_peers_acquisition::PeersArgs;
use sn_releases::{ReleaseType, SafeReleaseRepoActions};
Expand Down Expand Up @@ -610,6 +610,7 @@ pub async fn maintain_n_running_nodes(
data_dir_path: Option<PathBuf>,
enable_metrics_server: bool,
env_variables: Option<Vec<(String, String)>>,
evm_network: Option<EvmNetwork>,
home_network: bool,
local: bool,
log_dir_path: Option<PathBuf>,
Expand Down Expand Up @@ -714,8 +715,7 @@ pub async fn maintain_n_running_nodes(
data_dir_path.clone(),
enable_metrics_server,
env_variables.clone(),
// FIXME: Hardcoding for demo. Should be fixed!!
Some(EvmNetwork::ArbitrumSepolia),
evm_network.clone(),
home_network,
local,
log_dir_path.clone(),
Expand Down

0 comments on commit 033903d

Please sign in to comment.