remove unsued `lcDataForkAtEpoch` helper (#6449)

`lcDataForkAtEpoch(.)` is not used anywhere and can be removed.
`lcDataForkAtConsensusFork(consensusForkAtEpoch(.))` saves same purpose.
This commit is contained in:
Etan Kissling 2024-07-25 16:27:19 +02:00 committed by GitHub
parent 8c621b9ae6
commit 09f3882672
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 14 deletions

View File

@ -169,20 +169,6 @@ type
of LightClientDataFork.Electra: of LightClientDataFork.Electra:
electraData*: electra.LightClientStore electraData*: electra.LightClientStore
func lcDataForkAtEpoch*(
cfg: RuntimeConfig, epoch: Epoch): LightClientDataFork =
static: doAssert LightClientDataFork.high == LightClientDataFork.Electra
if epoch >= cfg.ELECTRA_FORK_EPOCH:
LightClientDataFork.Electra
elif epoch >= cfg.DENEB_FORK_EPOCH:
LightClientDataFork.Deneb
elif epoch >= cfg.CAPELLA_FORK_EPOCH:
LightClientDataFork.Capella
elif epoch >= cfg.ALTAIR_FORK_EPOCH:
LightClientDataFork.Altair
else:
LightClientDataFork.None
template kind*( template kind*(
# `SomeLightClientObject`: https://github.com/nim-lang/Nim/issues/18095 # `SomeLightClientObject`: https://github.com/nim-lang/Nim/issues/18095
x: typedesc[ x: typedesc[