Add chain-info Subcommand (#11250)

* Add `blockchain-info` Subcommand

* Update comment

* Cleanup

* Cleanup

* Use `sync_run`

* Use `sc_client_db` utility fns instead service backend

* Use service `Backend` builder

* Impl `From<sp_blockchain::Info>`

* Rename to `chain-info`

* fmt

* Copyright year

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Expose `DatabaseParams`

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
tgmichel
2022-04-25 21:07:26 +02:00
committed by GitHub
parent 2541efdbcc
commit 5eb2e3292d
8 changed files with 121 additions and 1 deletions
+2 -1
View File
@@ -16,6 +16,7 @@
// 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 chain_info_cmd;
mod check_block_cmd;
mod export_blocks_cmd;
mod export_state_cmd;
@@ -35,7 +36,7 @@ mod vanity;
mod verify;
pub use self::{
build_spec_cmd::BuildSpecCmd, check_block_cmd::CheckBlockCmd,
build_spec_cmd::BuildSpecCmd, chain_info_cmd::ChainInfoCmd, check_block_cmd::CheckBlockCmd,
export_blocks_cmd::ExportBlocksCmd, export_state_cmd::ExportStateCmd, generate::GenerateCmd,
generate_node_key::GenerateNodeKeyCmd, import_blocks_cmd::ImportBlocksCmd,
insert_key::InsertKeyCmd, inspect_key::InspectKeyCmd, inspect_node_key::InspectNodeKeyCmd,