From 6a3ab8a64b4cd8e1d9a0b84ef8be066c86efdff1 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 20 Dec 2024 19:56:37 -0500 Subject: [PATCH] icepick: don't open a Keyfork client if not deriving keys --- crates/icepick/src/cli/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/icepick/src/cli/mod.rs b/crates/icepick/src/cli/mod.rs index ff5b64b..5d90a2b 100644 --- a/crates/icepick/src/cli/mod.rs +++ b/crates/icepick/src/cli/mod.rs @@ -23,6 +23,9 @@ pub fn derive_keys( path_prefix: &DerivationPath, accounts: &[DerivationIndex], ) -> Vec> { + if accounts.is_empty() { + return vec![]; + } let mut derived_keys = vec![]; let mut client = keyforkd_client::Client::discover_socket().expect("keyforkd started"); for account in accounts {