From 2cd450cfa91d0a0155ce38e4983ec19f5622f341 Mon Sep 17 00:00:00 2001 From: scilio Date: Wed, 14 Sep 2022 13:20:45 -0400 Subject: [PATCH] call set_local_chain_type --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 26eb8ad..27810c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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> { } else { ChainTypes::Mainnet }; + global::set_local_chain_type(chain_type); let config_path = match args.value_of("config_file") { Some(path) => PathBuf::from(path),