fix: janitor incorrect missing block report

This commit is contained in:
Mohamed Sohail 2023-03-08 14:52:29 +00:00
parent 6d6b5d0d9f
commit 7b334e8691
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -97,7 +97,10 @@ func (j *Janitor) QueueMissingBlocks(ctx context.Context) error {
return err return err
} }
j.logg.Info("janitor: missing blocks", "count", j.stats.GetHeadCursor()-lowerBound) missingBlockCountReport := j.stats.GetHeadCursor() - lowerBound
if missingBlockCountReport > 10 {
j.logg.Info("janitor: missing blocks", "count")
}
rowsProcessed := 0 rowsProcessed := 0
for rows.Next() { for rows.Next() {