Skip to content

Commit

Permalink
fix(manager): unsubmitted bytes for batch calculation fix (#1019) (#1023
Browse files Browse the repository at this point in the history
)

Co-authored-by: Sergi Rene <sergi@datahop.network>
  • Loading branch information
omritoptix and srene authored Aug 15, 2024
1 parent 0dba52d commit 2e4055b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,15 @@ func (m *Manager) Start(ctx context.Context) error {

// Sequencer must wait till DA is synced to start submitting blobs
<-m.DAClient.Synced()
nBytes := m.GetUnsubmittedBytes()
bytesProducedC := make(chan int)

err = m.syncFromSettlement()
if err != nil {
return fmt.Errorf("sync block manager from settlement: %w", err)
}

nBytes := m.GetUnsubmittedBytes()
bytesProducedC := make(chan int)

uerrors.ErrGroupGoLog(eg, m.logger, func() error {
return m.SubmitLoop(ctx, bytesProducedC)
})
Expand Down

0 comments on commit 2e4055b

Please sign in to comment.