avoid multiple logging for accounts
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
4d32d4d403
commit
fc50b78637
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ghost-eye"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -178,14 +178,13 @@ impl Accounts {
|
||||
let pair_signer = PairSigner::<CasperConfig, Pair>::new(pair);
|
||||
|
||||
self.wallet_keys.push((wallet_name.to_string(), address, wallet_key.to_string(), pair_signer));
|
||||
|
||||
}
|
||||
if let Some(action_tx) = &self.action_tx {
|
||||
let _ = action_tx.send(Action::WalletLog(
|
||||
format!("read {} wallets from disk", self.wallet_keys.len()),
|
||||
ActionLevel::Info,
|
||||
));
|
||||
}
|
||||
}
|
||||
},
|
||||
Err(_) => {
|
||||
let (pair, seed) = match std::fs::read_to_string("/etc/ghost/wallet-key") {
|
||||
|
Loading…
Reference in New Issue
Block a user