mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 03:38:00 +00:00
05ae24d90a
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.
56 lines
1.6 KiB
Rust
56 lines
1.6 KiB
Rust
// This file is part of Substrate.
|
|
|
|
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
mod build_spec_cmd;
|
|
mod check_block_cmd;
|
|
mod export_blocks_cmd;
|
|
mod export_state_cmd;
|
|
mod import_blocks_cmd;
|
|
mod purge_chain_cmd;
|
|
mod sign;
|
|
mod verify;
|
|
mod vanity;
|
|
mod revert_cmd;
|
|
mod run_cmd;
|
|
mod generate_node_key;
|
|
mod generate;
|
|
mod insert_key;
|
|
mod inspect_node_key;
|
|
mod inspect_key;
|
|
mod key;
|
|
pub mod utils;
|
|
|
|
pub use self::{
|
|
build_spec_cmd::BuildSpecCmd,
|
|
check_block_cmd::CheckBlockCmd,
|
|
export_blocks_cmd::ExportBlocksCmd,
|
|
export_state_cmd::ExportStateCmd,
|
|
import_blocks_cmd::ImportBlocksCmd,
|
|
purge_chain_cmd::PurgeChainCmd,
|
|
sign::SignCmd,
|
|
generate::GenerateCmd,
|
|
insert_key::InsertKeyCmd,
|
|
inspect_key::InspectKeyCmd,
|
|
generate_node_key::GenerateNodeKeyCmd,
|
|
inspect_node_key::InspectNodeKeyCmd,
|
|
key::KeySubcommand,
|
|
vanity::VanityCmd,
|
|
verify::VerifyCmd,
|
|
revert_cmd::RevertCmd,
|
|
run_cmd::RunCmd,
|
|
};
|