diff --git a/indexer/db.go b/indexer/db.go index fcd8818..e170c91 100644 --- a/indexer/db.go +++ b/indexer/db.go @@ -650,7 +650,8 @@ func (p *PostgreSQLpgx) GetLatestDBBlockNumber(blockchain string) (uint64, error err = conn.QueryRow(context.Background(), query).Scan(&blockNumber) if err != nil { - return 0, fmt.Errorf("no data in %s, err: %w", blocksTableName, err) + log.Printf("No data found in %s table", blocksTableName) + return 0, err } return blockNumber, nil