fix typo (`snapshop` -> `snapshot`) (#3192)
This fixes a typo in the word `snapshot` of function name `extractGenesisValidatorRootFromSnapshop`.
This commit is contained in:
parent
4498d96a9a
commit
ad26284614
|
@ -199,6 +199,6 @@ proc getRuntimeConfig*(
|
||||||
return getMetadataForNetwork(eth2Network.get).cfg
|
return getMetadataForNetwork(eth2Network.get).cfg
|
||||||
return defaultRuntimeConfig
|
return defaultRuntimeConfig
|
||||||
|
|
||||||
proc extractGenesisValidatorRootFromSnapshop*(
|
proc extractGenesisValidatorRootFromSnapshot*(
|
||||||
snapshot: string): Eth2Digest {.raises: [Defect, IOError, SszError].} =
|
snapshot: string): Eth2Digest {.raises: [Defect, IOError, SszError].} =
|
||||||
sszMount(snapshot, phase0.BeaconState).genesis_validators_root[]
|
sszMount(snapshot, phase0.BeaconState).genesis_validators_root[]
|
||||||
|
|
|
@ -306,7 +306,7 @@ proc init*(T: type BeaconNode,
|
||||||
if genesisStateContents.len != 0:
|
if genesisStateContents.len != 0:
|
||||||
let
|
let
|
||||||
networkGenesisValidatorsRoot =
|
networkGenesisValidatorsRoot =
|
||||||
extractGenesisValidatorRootFromSnapshop(genesisStateContents)
|
extractGenesisValidatorRootFromSnapshot(genesisStateContents)
|
||||||
|
|
||||||
if networkGenesisValidatorsRoot != databaseGenesisValidatorsRoot:
|
if networkGenesisValidatorsRoot != databaseGenesisValidatorsRoot:
|
||||||
fatal "The specified --data-dir contains data for a different network",
|
fatal "The specified --data-dir contains data for a different network",
|
||||||
|
|
Loading…
Reference in New Issue