Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 30e1deb

Browse files
committed
update comment
1 parent fc3b945 commit 30e1deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ func forkIDIntervals(ctx context.Context, st *state.State, etherman *etherman.Cl
641641
if err != nil && !errors.Is(err, state.ErrStateNotSynchronized) {
642642
return []state.ForkIDInterval{}, fmt.Errorf("error checking lastL1BlockSynced. Error: %v", err)
643643
}
644-
// If lastBlock is below genesisBlock means state.ErrStateNotSynchronized (haven't started yet the sync process, is doing pregenesis sync)
644+
// If there are a lastBlock and is >= to genesisBlock, means that have started the sync process (if not if lastBlock!=nil then is doing pregenesis sync)
645645
if lastBlock != nil && lastBlock.BlockNumber >= genesisBlockNumber {
646646
log.Info("Getting forkIDs intervals. Please wait...")
647647
// Read Fork ID FROM POE SC

0 commit comments

Comments
 (0)