We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a24b4af commit fedcb3bCopy full SHA for fedcb3b
1 file changed
block/internal/syncing/syncer.go
@@ -177,7 +177,7 @@ func (s *Syncer) SetLastState(state types.State) {
177
178
// GetDAHeight returns the current DA height
179
func (s *Syncer) GetDAHeight() uint64 {
180
- return max(s.daHeight.Load(), s.cache.DaHeight())
+ return s.daHeight.Load()
181
}
182
183
// SetDAHeight updates the DA height
@@ -298,7 +298,7 @@ func (s *Syncer) fetchDAUntilCaughtUp() error {
298
default:
299
300
301
- daHeight := s.GetDAHeight()
+ daHeight := max(s.GetDAHeight(), s.cache.DaHeight())
302
303
events, err := s.daRetriever.RetrieveFromDA(s.ctx, daHeight)
304
if err != nil {
0 commit comments