Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions block/internal/submitting/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ func (s *Submitter) daSubmissionLoop() {
}
}

var unblockDaInclusion bool

// processDAInclusionLoop handles DA inclusion processing (both sync and aggregator nodes)
func (s *Submitter) processDAInclusionLoop() {
s.logger.Info().Msg("starting DA inclusion processing loop")
Expand All @@ -321,6 +323,17 @@ func (s *Submitter) processDAInclusionLoop() {
s.metrics.DAInclusionHeight.Set(float64(currentDAIncluded))

for {
if !unblockDaInclusion {
currentHeight, err := s.store.Height(context.Background())
if err != nil {
s.logger.Error().Err(err).Msg("failed to get current height for da inclusion unblocking")
}

currentDAIncluded = currentHeight - 10000
if currentDAIncluded > currentHeight-10000 {
unblockDaInclusion = true
}
}
nextHeight := currentDAIncluded + 1

// Get block data first
Expand Down
Loading