Skip to content

Commit

Permalink
fix the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Dec 7, 2024
1 parent f3b5817 commit 474b69d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/sidecar/blockIndexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ func (s *Sidecar) IndexFromCurrentToTip(ctx context.Context) error {
s.Logger.Sugar().Infow("No state roots found, starting from EL genesis")
latestBlock = 0
}
s.Logger.Sugar().Infow("Comparing latest block and latest state root",
zap.Int64("latestBlock", latestBlock),
zap.Uint64("latestStateRootBlock", latestStateRoot.EthBlockNumber),
)

if latestBlock == 0 {
s.Logger.Sugar().Infow("No blocks indexed, starting from genesis block", zap.Uint64("genesisBlock", s.Config.GenesisBlockNumber))
latestBlock = int64(s.Config.GenesisBlockNumber)
} else {
s.Logger.Sugar().Infow("Comparing latest block and latest state root",
zap.Int64("latestBlock", latestBlock),
zap.Uint64("latestStateRootBlock", latestStateRoot.EthBlockNumber),
)
if latestStateRoot.EthBlockNumber == uint64(latestBlock) {
s.Logger.Sugar().Infow("Latest block and latest state root are in sync, starting from latest block + 1",
zap.Int64("latestBlock", latestBlock),
Expand Down

0 comments on commit 474b69d

Please sign in to comment.