[lcli] the fork version is now inferred from the spec and can also be… (#1068)

* [lcli] the fork version is now inferred from the spec and can also be overridden for the interop-genesis subcommand with a command line flag just like for the new-testnet subcommand

* fixed formatting
This commit is contained in:
Viktor Kirilov
2020-04-29 02:25:54 +03:00
committed by GitHub
parent 41208d79b1
commit 37dc3d463d
2 changed files with 12 additions and 1 deletions

View File

@@ -225,6 +225,14 @@ fn main() {
.takes_value(true)
.help("The value for state.genesis_time. Defaults to now."),
)
.arg(
Arg::with_name("genesis-fork-version")
.long("genesis-fork-version")
.value_name("HEX")
.takes_value(true)
.help("Used to avoid reply attacks between testnets. Recommended to set to
non-default."),
)
)
.subcommand(
SubCommand::with_name("change-genesis-time")