Add genesis subcommand
This commit is contained in:
parent
73063544bd
commit
1ef3478709
|
@ -616,6 +616,10 @@ fn main() {
|
||||||
.help("List of slots to print"),
|
.help("List of slots to print"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.subcommand(
|
||||||
|
SubCommand::with_name("genesis")
|
||||||
|
.about("Prints the ledger's genesis config")
|
||||||
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("genesis-hash")
|
SubCommand::with_name("genesis-hash")
|
||||||
.about("Prints the ledger's genesis hash")
|
.about("Prints the ledger's genesis hash")
|
||||||
|
@ -763,6 +767,9 @@ fn main() {
|
||||||
LedgerOutputMethod::Print,
|
LedgerOutputMethod::Print,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
("genesis", Some(_arg_matches)) => {
|
||||||
|
println!("{}", open_genesis_config(&ledger_path));
|
||||||
|
}
|
||||||
("genesis-hash", Some(_arg_matches)) => {
|
("genesis-hash", Some(_arg_matches)) => {
|
||||||
println!("{}", open_genesis_config(&ledger_path).hash());
|
println!("{}", open_genesis_config(&ledger_path).hash());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue