From 474b69ddb2e63f2b1219695f0ce467c7b357e646 Mon Sep 17 00:00:00 2001 From: Sean McGary Date: Fri, 6 Dec 2024 20:02:11 -0600 Subject: [PATCH] fix the linter --- pkg/sidecar/blockIndexer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/sidecar/blockIndexer.go b/pkg/sidecar/blockIndexer.go index 1a53f250..a759042b 100644 --- a/pkg/sidecar/blockIndexer.go +++ b/pkg/sidecar/blockIndexer.go @@ -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),