Skip to content

Commit

Permalink
fix: skip trying to apply blocks from DA with mismatched heights. (dy…
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Mar 4, 2024
1 parent 582b71d commit d2a0a97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func (m *Manager) processNextDABatch(ctx context.Context, daMetaData *da.DASubmi

for _, batch := range batchResp.Batches {
for i, block := range batch.Blocks {
if block.Header.Height != m.store.Height()+1 {
continue
}
err := m.applyBlock(ctx, block, batch.Commits[i], blockMetaData{source: daBlock, daHeight: daMetaData.Height})
if err != nil {
return err
Expand Down

0 comments on commit d2a0a97

Please sign in to comment.