making validation function public

This commit is contained in:
John Hyde 2025-09-11 18:28:40 -07:00
parent 5ffc0fb6bb
commit 3bb71252ce

View File

@ -440,8 +440,8 @@ func (c *Client) getLatestBlockHash(ctx context.Context) (string, error) {
return resp.AzimuthGetSyncStatus.LatestProcessedBlockHash, nil
}
// validateStarSponsorship validates that a star is sponsored by the expected galaxy
func (c *Client) validateStarSponsorship(ctx context.Context, starID uint32, expectedGalaxyID uint32) error {
// ValidateStarSponsorship validates that a star is sponsored by the expected galaxy
func (c *Client) ValidateStarSponsorship(ctx context.Context, starID uint32, expectedGalaxyID uint32) error {
hasSponsor, err := c.HasSponsor(ctx, starID)
if err != nil {
return fmt.Errorf("failed to get sponsor: %w", err)