From ad262846144b24fab558d3aad58079ad4830858c Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Tue, 14 Dec 2021 16:44:34 +0100 Subject: [PATCH] fix typo (`snapshop` -> `snapshot`) (#3192) This fixes a typo in the word `snapshot` of function name `extractGenesisValidatorRootFromSnapshop`. --- beacon_chain/networking/network_metadata.nim | 2 +- beacon_chain/nimbus_beacon_node.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/networking/network_metadata.nim b/beacon_chain/networking/network_metadata.nim index f677c1f58..af006b3cf 100644 --- a/beacon_chain/networking/network_metadata.nim +++ b/beacon_chain/networking/network_metadata.nim @@ -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[] diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 38cdf8d67..0b931db11 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -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",