call set_local_chain_type

This commit is contained in:
scilio 2022-09-14 13:20:45 -04:00
parent d00362b02e
commit 2cd450cfa9

View file

@ -5,6 +5,7 @@ use wallet::HttpWallet;
use crate::store::StoreError;
use clap::App;
use grin_core::global;
use grin_core::global::ChainTypes;
use grin_util::{StopState, ZeroingString};
use rpassword;
@ -40,6 +41,7 @@ fn real_main() -> Result<(), Box<dyn std::error::Error>> {
} else {
ChainTypes::Mainnet
};
global::set_local_chain_type(chain_type);
let config_path = match args.value_of("config_file") {
Some(path) => PathBuf::from(path),