Skip to content

Commit

Permalink
fix: default to esme (#4398)
Browse files Browse the repository at this point in the history
Make the base_node select the Esmeralda network by default if no network was provided
  • Loading branch information
SWvheerden authored Aug 5, 2022
1 parent a4b1115 commit 8d9a448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/tari_base_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl Default for BaseNodeConfig {
};
Self {
override_from: None,
network: Network::LocalNet,
network: Network::Esmeralda,
grpc_address: Some("/ip4/127.0.0.1/tcp/18142".parse().unwrap()),
identity_file: PathBuf::from("config/base_node_id.json"),
use_libtor: false,
Expand Down
8 changes: 6 additions & 2 deletions common/config/presets/c_base_node.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ identity_file = "config/base_node_id_dibbler.json"
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json")
identity_file = "config/base_node_id_igor.json"

[esmeralda.base_node]
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json")
identity_file = "config/base_node_id_esmeralda.json"

[base_node]
# Selected network (Note: Not implemented properly, please specify on the command line) (default = "localnet")
#network = "localnet"
# Selected network (Note: Not implemented properly, please specify on the command line) (default = "emseralda")
#network = "emseralda"
# The socket to expose for the gRPC base node server (default = "/ip4/127.0.0.1/tcp/18142")
#grpc_address = "/ip4/127.0.0.1/tcp/18142"

Expand Down

0 comments on commit 8d9a448

Please sign in to comment.