Skip to content

Commit 3923a26

Browse files
committed
add error log for index entry failure
1 parent e17d951 commit 3923a26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x/blockdb/database.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ func (s *Database) HasBlock(height BlockHeight) (bool, error) {
620620
if errors.Is(err, ErrBlockNotFound) {
621621
return false, nil
622622
}
623+
s.log.Error("Failed to check if block exists: failed to read index entry",
624+
zap.Uint64("height", height),
625+
zap.Error(err),
626+
)
623627
return false, err
624628
}
625629
return true, nil

0 commit comments

Comments
 (0)