Add genesis subcommand
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user