Fix EnrForkId computation (#1441)

## Issue Addressed

Fixes #1433 

## Proposed Changes

Fix the computation for EnrForkId for generating pre-genesis enr.
This commit is contained in:
Pawan Dhananjay
2020-08-06 04:29:15 +00:00
parent 09a615b2c0
commit 82a0973935
2 changed files with 18 additions and 2 deletions

View File

@@ -440,6 +440,15 @@ fn main() {
.required(true)
.help("The directory in which to create the network dir"),
)
.arg(
Arg::with_name("genesis-fork-version")
.long("genesis-fork-version")
.value_name("HEX")
.takes_value(true)
.required(true)
.help("Used to avoid reply attacks between testnets. Recommended to set to
non-default."),
)
)
.subcommand(
SubCommand::with_name("insecure-validators")