396: Don't skip any blocks if the head of the chain advances by more than one block. #397

Merged
telackey merged 7 commits from telackey/396 into v1.11.6-statediff-v5 2023-07-06 17:00:59 +00:00
Showing only changes of commit b6a4083ce6 - Show all commits
+2
View File
@@ -468,6 +468,8 @@ func (sds *Service) Loop(chainEventCh chan core.ChainEvent) {
select {
//Notify chain event channel of events
case chainEvent := <-chainEventCh:
// TODO: Do we need to track the last streamed block as we do for the WriteLoop so that we can detect
// and plug any gaps in the events? If not, we risk presenting an incomplete record.
defaultStatediffMetrics.serviceLoopChannelLen.Update(int64(len(chainEventCh)))
log.Debug("Loop(): chain event received", "event", chainEvent)
// if we don't have any subscribers, do not process a statediff