From 1ef3478709ce323e22db734e4b11f76429e2b85d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 24 Feb 2020 10:19:29 -0700 Subject: [PATCH] Add genesis subcommand --- ledger-tool/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 56d0fd351e..712f6a14c3 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -616,6 +616,10 @@ fn main() { .help("List of slots to print"), ) ) + .subcommand( + SubCommand::with_name("genesis") + .about("Prints the ledger's genesis config") + ) .subcommand( SubCommand::with_name("genesis-hash") .about("Prints the ledger's genesis hash") @@ -763,6 +767,9 @@ fn main() { LedgerOutputMethod::Print, ); } + ("genesis", Some(_arg_matches)) => { + println!("{}", open_genesis_config(&ledger_path)); + } ("genesis-hash", Some(_arg_matches)) => { println!("{}", open_genesis_config(&ledger_path).hash()); }