fix typo (`snapshop` -> `snapshot`) (#3192)

This fixes a typo in the word `snapshot` of function name
`extractGenesisValidatorRootFromSnapshop`.
This commit is contained in:
Etan Kissling 2021-12-14 16:44:34 +01:00 committed by GitHub
parent 4498d96a9a
commit ad26284614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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[]

View File

@ -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",