making validation function public
This commit is contained in:
parent
5ffc0fb6bb
commit
3bb71252ce
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user