mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Missing type annotation keychain (#1152)
This commit is contained in:
parent
d07c5a128a
commit
310c7b0b48
1 changed files with 13 additions and 9 deletions
|
@ -49,6 +49,7 @@ use daemonize::Daemonize;
|
||||||
use config::GlobalConfig;
|
use config::GlobalConfig;
|
||||||
use core::core::amount_to_hr_string;
|
use core::core::amount_to_hr_string;
|
||||||
use core::global;
|
use core::global;
|
||||||
|
use keychain::ExtKeychain;
|
||||||
use tui::ui;
|
use tui::ui;
|
||||||
use util::{init_logger, LoggingConfig, LOGGER};
|
use util::{init_logger, LoggingConfig, LOGGER};
|
||||||
use wallet::{libwallet, FileWallet};
|
use wallet::{libwallet, FileWallet};
|
||||||
|
@ -422,7 +423,8 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon
|
||||||
let _ = thread::Builder::new()
|
let _ = thread::Builder::new()
|
||||||
.name("wallet_listener".to_string())
|
.name("wallet_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(), "")
|
||||||
|
.unwrap_or_else(|e| {
|
||||||
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
||||||
});
|
});
|
||||||
wallet::controller::foreign_listener(wallet, &wallet_config.api_listen_addr())
|
wallet::controller::foreign_listener(wallet, &wallet_config.api_listen_addr())
|
||||||
|
@ -539,7 +541,8 @@ fn wallet_command(wallet_args: &ArgMatches, global_config: GlobalConfig) {
|
||||||
|
|
||||||
// Handle listener startup commands
|
// Handle listener startup commands
|
||||||
{
|
{
|
||||||
let wallet = FileWallet::new(wallet_config.clone(), passphrase).unwrap_or_else(|e| {
|
let wallet: FileWallet<ExtKeychain> = FileWallet::new(wallet_config.clone(), passphrase)
|
||||||
|
.unwrap_or_else(|e| {
|
||||||
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
||||||
});
|
});
|
||||||
match wallet_args.subcommand() {
|
match wallet_args.subcommand() {
|
||||||
|
@ -569,7 +572,8 @@ fn wallet_command(wallet_args: &ArgMatches, global_config: GlobalConfig) {
|
||||||
|
|
||||||
// Handle single-use (command line) owner commands
|
// Handle single-use (command line) owner commands
|
||||||
{
|
{
|
||||||
let mut wallet = FileWallet::new(wallet_config.clone(), passphrase).unwrap_or_else(|e| {
|
let mut wallet: FileWallet<ExtKeychain> =
|
||||||
|
FileWallet::new(wallet_config.clone(), passphrase).unwrap_or_else(|e| {
|
||||||
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config)
|
||||||
});
|
});
|
||||||
let _res = wallet::controller::owner_single_use(&mut wallet, |api| {
|
let _res = wallet::controller::owner_single_use(&mut wallet, |api| {
|
||||||
|
|
Loading…
Reference in a new issue