mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
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 defaultRuntimeConfig
|
||||
|
||||
proc extractGenesisValidatorRootFromSnapshop*(
|
||||
proc extractGenesisValidatorRootFromSnapshot*(
|
||||
snapshot: string): Eth2Digest {.raises: [Defect, IOError, SszError].} =
|
||||
sszMount(snapshot, phase0.BeaconState).genesis_validators_root[]
|
||||
|
@ -306,7 +306,7 @@ proc init*(T: type BeaconNode,
|
||||
if genesisStateContents.len != 0:
|
||||
let
|
||||
networkGenesisValidatorsRoot =
|
||||
extractGenesisValidatorRootFromSnapshop(genesisStateContents)
|
||||
extractGenesisValidatorRootFromSnapshot(genesisStateContents)
|
||||
|
||||
if networkGenesisValidatorsRoot != databaseGenesisValidatorsRoot:
|
||||
fatal "The specified --data-dir contains data for a different network",
|
||||
|
Loading…
x
Reference in New Issue
Block a user