mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +00:00
Fix base-path handling in key insert (#7775)
This fixes the handling of base-path when using `key insert`. Before the base-path wasn't setup correctly, as done when starting a node. This resulted in putting the keys into the wrong directory. This pr fixes this by creating the correct base-path/config dir for the keystore. Besides that it also removes the insert command from `subkey` as it doesn't make that much sense. If requested, we could bring it back later.
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
|
||||
use structopt::StructOpt;
|
||||
use sc_cli::{
|
||||
Error, VanityCmd, SignCmd, VerifyCmd, InsertCmd,
|
||||
GenerateNodeKeyCmd, GenerateCmd, InspectKeyCmd, InspectNodeKeyCmd
|
||||
Error, VanityCmd, SignCmd, VerifyCmd, GenerateNodeKeyCmd, GenerateCmd, InspectKeyCmd,
|
||||
InspectNodeKeyCmd
|
||||
};
|
||||
use substrate_frame_cli::ModuleIdCmd;
|
||||
use sp_core::crypto::Ss58Codec;
|
||||
@@ -44,9 +44,6 @@ pub enum Subkey {
|
||||
/// Print the peer ID corresponding to the node key in the given file
|
||||
InspectNodeKey(InspectNodeKeyCmd),
|
||||
|
||||
/// Insert a key to the keystore of a node.
|
||||
Insert(InsertCmd),
|
||||
|
||||
/// Inspect a module ID address
|
||||
ModuleId(ModuleIdCmd),
|
||||
|
||||
@@ -71,7 +68,6 @@ pub fn run<R>() -> Result<(), Error>
|
||||
Subkey::Generate(cmd) => cmd.run()?,
|
||||
Subkey::Inspect(cmd) => cmd.run()?,
|
||||
Subkey::InspectNodeKey(cmd) => cmd.run()?,
|
||||
Subkey::Insert(cmd) => cmd.run()?,
|
||||
Subkey::ModuleId(cmd) => cmd.run::<R>()?,
|
||||
Subkey::Vanity(cmd) => cmd.run()?,
|
||||
Subkey::Verify(cmd) => cmd.run()?,
|
||||
|
||||
Reference in New Issue
Block a user