Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CATS support #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

CATS support #179

wants to merge 2 commits into from

Conversation

igorcrevar
Copy link
Contributor

@igorcrevar igorcrevar self-assigned this Oct 31, 2024
@igorcrevar igorcrevar force-pushed the feat/newinfra1 branch 3 times, most recently from 7eb4f00 to cc7703c Compare November 4, 2024 09:35
@igorcrevar igorcrevar changed the title New Infra + CATS support CATS support Nov 15, 2024
@@ -204,7 +216,7 @@ func (p *generateConfigsParams) validateFlags() error {
return fmt.Errorf("invalid %s: %s", primeNetworkAddressFlag, p.primeNetworkAddress)
}

if p.primeBlockfrostURL == "" && p.primeSocketPath == "" && p.primeOgmiosURL == "" {
if p.primeBlockfrostURL == "" && p.primeSocketPath == "" && p.primeOgmiosURL == "" && p.primeCatsURL == "" {
return fmt.Errorf("specify at least one of: %s, %s, %s",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return fmt.Errorf("specify at least one of: %s, %s, %s, %s",
primeBlockfrostURLFlag, primeSocketPathFlag, primeOgmiosURLFlag, primeCatsURLFlag)

if !common.IsValidNetworkAddress(p.vectorNetworkAddress) {
return fmt.Errorf("invalid %s: %s", vectorNetworkAddressFlag, p.vectorNetworkAddress)
}

if p.vectorBlockfrostURL == "" && p.vectorSocketPath == "" && p.vectorOgmiosURL == "" {
if p.vectorBlockfrostURL == "" && p.vectorSocketPath == "" && p.vectorOgmiosURL == "" && p.vectorCatsURL == "" {
return fmt.Errorf("specify at least one of: %s, %s, %s",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return fmt.Errorf("specify at least one of: %s, %s, %s, %s",
vectorBlockfrostURLFlag, vectorSocketPathFlag, vectorOgmiosURLFlag, vectorCatsURLFlag)

@@ -217,11 +229,15 @@ func (p *generateConfigsParams) validateFlags() error {
return fmt.Errorf("invalid prime ogmios url: %s", p.primeOgmiosURL)
}

if p.primeCatsURL != "" && !common.IsValidHTTPURL(p.primeCatsURL) {
return fmt.Errorf("invalid prime cats url: %s", p.primeCatsURL)
Copy link
Collaborator

@babinskizoltan babinskizoltan Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you also validate cats api key, if cats url is specified?

@@ -234,6 +250,10 @@ func (p *generateConfigsParams) validateFlags() error {
return fmt.Errorf("invalid vector ogmios url: %s", p.vectorOgmiosURL)
}

if p.vectorCatsURL != "" && !common.IsValidHTTPURL(p.vectorCatsURL) {
return fmt.Errorf("invalid vector cats url: %s", p.vectorCatsURL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you also validate cats api key, if cats url is specified?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants