mirror of
				https://github.com/grassrootseconomics/cic-chain-events.git
				synced 2025-11-04 09:28:22 +01:00 
			
		
		
		
	fix: janitor incorrect missing block report
This commit is contained in:
		
							parent
							
								
									6d6b5d0d9f
								
							
						
					
					
						commit
						7b334e8691
					
				@ -97,7 +97,10 @@ func (j *Janitor) QueueMissingBlocks(ctx context.Context) error {
 | 
			
		||||
		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
 | 
			
		||||
	for rows.Next() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user