mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
fix build error (#1157)
This commit is contained in:
parent
169ffee607
commit
a3bc383d4c
1 changed files with 10 additions and 4 deletions
|
@ -371,7 +371,12 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon
|
||||||
info!(
|
info!(
|
||||||
LOGGER,
|
LOGGER,
|
||||||
"Starting the Grin server from configuration file at {}",
|
"Starting the Grin server from configuration file at {}",
|
||||||
global_config.config_file_path.as_ref().unwrap().to_str().unwrap()
|
global_config
|
||||||
|
.config_file_path
|
||||||
|
.as_ref()
|
||||||
|
.unwrap()
|
||||||
|
.to_str()
|
||||||
|
.unwrap()
|
||||||
);
|
);
|
||||||
global::set_mining_mode(
|
global::set_mining_mode(
|
||||||
global_config
|
global_config
|
||||||
|
@ -446,9 +451,10 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon
|
||||||
let _ = thread::Builder::new()
|
let _ = thread::Builder::new()
|
||||||
.name("wallet_owner_listener".to_string())
|
.name("wallet_owner_listener".to_string())
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
let wallet = FileWallet::new(wallet_config.clone(), "").unwrap_or_else(|e| {
|
let wallet: FileWallet<ExtKeychain> = FileWallet::new(wallet_config.clone(), "")
|
||||||
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
.unwrap_or_else(|e| {
|
||||||
});
|
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
||||||
|
});
|
||||||
wallet::controller::owner_listener(wallet, "127.0.0.1:13420").unwrap_or_else(|e| {
|
wallet::controller::owner_listener(wallet, "127.0.0.1:13420").unwrap_or_else(|e| {
|
||||||
panic!(
|
panic!(
|
||||||
"Error creating wallet api listener: {:?} Config: {:?}",
|
"Error creating wallet api listener: {:?} Config: {:?}",
|
||||||
|
|
Loading…
Reference in a new issue