remove unsued `lcDataForkAtEpoch` helper (#6449)
`lcDataForkAtEpoch(.)` is not used anywhere and can be removed. `lcDataForkAtConsensusFork(consensusForkAtEpoch(.))` saves same purpose.
This commit is contained in:
parent
8c621b9ae6
commit
09f3882672
|
@ -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[
|
||||||
|
|
Loading…
Reference in New Issue