mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-15 17:15:37 +00:00
fix LC data import --only-new
regression (#5616)
Corrects LC server startup logic for `LightClientDataImportMode.OnlyNew` after regression in #5607.
This commit is contained in:
parent
7554ca2583
commit
b0b8f21223
@ -764,10 +764,9 @@ proc initLightClientDataCache*(dag: ChainDAGRef) =
|
||||
initDur = lightClientEndTick - lightClientStartTick, res
|
||||
if res.isErr:
|
||||
return
|
||||
if dag.lcDataStore.importMode == LightClientDataImportMode.OnDemand:
|
||||
return
|
||||
|
||||
# Import historic data
|
||||
if dag.lcDataStore.importMode == LightClientDataImportMode.Full:
|
||||
dag.lcDataStore.cache.tailSlot = targetTailSlot
|
||||
let targetTailPeriod = targetTailSlot.sync_committee_period
|
||||
if targetTailPeriod < finalizedPeriod:
|
||||
|
Loading…
x
Reference in New Issue
Block a user