Skip to content

Commit af367eb

Browse files
committed
simplify
1 parent bbdaed5 commit af367eb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

block/internal/cache/generic_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (c *Cache[T]) deleteAllForHeight(height uint64) {
187187

188188
if ok {
189189
c.hashes.Remove(hash)
190-
// c.daIncluded.Remove(hash) // we actually do not want to delete the DA-included status here
190+
c.daIncluded.Remove(hash)
191191
}
192192
}
193193

block/internal/submitting/submitter.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,6 @@ func (s *Submitter) processDAInclusionLoop() {
364364
// Delete height cache for that height
365365
// This can only be performed after the height has been persisted to store
366366
s.cache.DeleteHeight(nextHeight)
367-
368-
// Remove DA included status from cache since this height is now finalized
369-
s.cache.RemoveHeaderDAIncluded(header.Hash().String())
370-
s.cache.RemoveDataDAIncluded(data.DACommitment().String())
371367
}
372368
}
373369
}

0 commit comments

Comments
 (0)