Skip to content

Commit

Permalink
fix panic that isn't real
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Jul 26, 2024
1 parent 58740de commit ba358b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/tbc/tbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,8 @@ func (s *Server) synced(ctx context.Context) (si SyncInfo) {
// by one from the last block height seen.
bhb, err := s.db.BlockHeaderBest(ctx)
if err != nil {
panic(err)
log.Errorf("synced: block headers best: %v", err)
return
}
// Ensure we have genesis or the Synced flag will be true if metadata
// does not exist.
Expand Down

0 comments on commit ba358b8

Please sign in to comment.