Skip to content

Commit c617359

Browse files
committed
dont create mock headers
1 parent 08c83d9 commit c617359

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/testda/dummy.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,11 @@ func (d *DummyDA) GetHeaderByHeight(_ context.Context, height uint64) (*Header,
282282
d.mu.Unlock()
283283

284284
if header == nil {
285-
// Return a header with current time if height is within known range
286-
// This mimics the behavior of a real DA layer where empty blocks still have headers
287285
currentHeight := d.height.Load()
288-
if height <= currentHeight && height > 0 {
289-
return &Header{
290-
Height: height,
291-
Timestamp: time.Now(),
292-
}, nil
286+
if height > currentHeight {
287+
return nil, datypes.ErrHeightFromFuture
293288
}
294-
return nil, datypes.ErrHeightFromFuture
289+
return nil, datypes.ErrBlobNotFound
295290
}
296291
return header, nil
297292
}

0 commit comments

Comments
 (0)