Skip to content

Commit a8a23b7

Browse files
authored
Np/debug reorg (#311)
1 parent 5a75c64 commit a8a23b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

internal/committer/reorg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ func RunReorgValidator() {
3333
continue
3434
}
3535

36-
if endBlock == lastBlockCheck || endBlock-startBlock < 100 {
37-
log.Debug().Msg("Not enough new blocks to check. Sleeping for 1 minute.")
36+
if endBlock-startBlock < 100 {
37+
log.Debug().Int64("last_block_check", lastBlockCheck).Int64("start_block", startBlock).Int64("end_block", endBlock).Msg("Not enough new blocks to check. Sleeping for 1 minute.")
3838
time.Sleep(1 * time.Minute)
3939
continue
4040
}

internal/libs/clickhouse.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,12 @@ func GetBlockDataFromClickHouseV2(chainId uint64, startBlockNumber uint64, endBl
243243
if blocksRaw[i].TransactionCount != uint64(len(transactionsRaw[i])) {
244244
log.Info().
245245
Any("transactionCount", blocksRaw[i].TransactionCount).
246-
Any("transactionsRaw", transactionsRaw[i]).
247246
Msg("skipping block because transactionCount does not match")
248247
continue
249248
}
250249
if (blocksRaw[i].LogsBloom != "" && blocksRaw[i].LogsBloom != EMPTY_LOGS_BLOOM) && len(logsRaw[i]) == 0 {
251250
log.Info().
252251
Any("logsBloom", blocksRaw[i].LogsBloom).
253-
Any("logsRaw", logsRaw[i]).
254252
Msg("skipping block because logsBloom is not empty and logsRaw is empty")
255253
continue
256254
}

0 commit comments

Comments
 (0)