Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
advaita-saha committed Sep 17, 2024
1 parent 8916087 commit 47afaeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nimbus/nimbus_import.nim
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ proc importBlocks*(conf: NimbusConf, com: CommonRef) =
# Since the slot emptiness cannot be predicted, we iterate over to find the block and check
# if the block number is greater than the current block number
var
lastEra = era(endSlot - 1)
lastEra = era(endSlot - 1)
startSlot = start_slot(lastEra) - 8192
debug "Finding slot number to resume import", startSlot, endSlot

Expand All @@ -244,7 +244,7 @@ proc importBlocks*(conf: NimbusConf, com: CommonRef) =
era, historical_roots, historical_summaries, startSlot, clConfig.cfg
).valueOr:
startSlot += 1
if startSlot == endSlot - 1 :
if startSlot == endSlot - 1:
error "No blocks found in the last era file"
quit QuitFailure
else:
Expand Down

0 comments on commit 47afaeb

Please sign in to comment.