Skip to content

Commit 2c9a212

Browse files
committed
Review feedback
1 parent 044903f commit 2c9a212

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

block/internal/syncing/syncer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ func (s *Syncer) processHeightEvent(event *common.DAHeightEvent) {
449449
}
450450
default:
451451
// check both
452-
if _, exists := s.cache.GetDataDAIncluded(event.Data.Hash().String()); !exists {
453-
daHeightHints = []uint64{event.DaHeightHints[1]}
452+
if _, exists := s.cache.GetHeaderDAIncluded(event.Header.Hash().String()); !exists {
453+
daHeightHints = []uint64{event.DaHeightHints[0]}
454454
}
455455
if _, exists := s.cache.GetDataDAIncluded(event.Data.Hash().String()); !exists {
456456
daHeightHints = append(daHeightHints, event.DaHeightHints[1])

0 commit comments

Comments
 (0)