Compare commits
2 Commits
5e3a2176f3
...
680b51f0cf
Author | SHA1 | Date | |
---|---|---|---|
680b51f0cf | |||
896884a1e1 |
@ -60,7 +60,7 @@ pub struct Config {
|
|||||||
fn default_network() -> String {
|
fn default_network() -> String {
|
||||||
// default to testnet
|
// default to testnet
|
||||||
// TODO: remove instruction from docs to set brain_url, since it defaults now
|
// TODO: remove instruction from docs to set brain_url, since it defaults now
|
||||||
"testing".to_string()
|
"testnet".to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
@ -355,7 +355,7 @@ impl Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_network(mut network: &str) {
|
pub fn set_network(mut network: &str) {
|
||||||
if network != "staging" {
|
if network != "staging" && network != "testnet" {
|
||||||
log::error!(
|
log::error!(
|
||||||
"The network {network} is not officially supported. Defaulting to testnet!"
|
"The network {network} is not officially supported. Defaulting to testnet!"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user