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

[Observer] Ambiguous references #6344

Open
UlyanaAndrukhiv opened this issue Aug 15, 2024 · 2 comments
Open

[Observer] Ambiguous references #6344

UlyanaAndrukhiv opened this issue Aug 15, 2024 · 2 comments
Labels

Comments

@UlyanaAndrukhiv
Copy link
Contributor

UlyanaAndrukhiv commented Aug 15, 2024

Problem Definition

Observer node builder has ambiguous references bootstrapNodeAddresses and bootstrapNodePublicKeys.

First from ObserverServiceConfig

type ObserverServiceConfig struct {
bootstrapNodeAddresses []string
bootstrapNodePublicKeys []string

and another from FlowNodeBuilder

flow-go/cmd/scaffold.go

Lines 141 to 142 in 31007f0

bootstrapNodeAddresses []string
bootstrapNodePublicKeys []string

Proposed Solution

Since ObserverServiceBuilder embeds FlowNodeBuilder, it will inherit the bootstrapNodeAddresses and bootstrapNodePublicKeys fields from FlowNodeBuilder. This means can directly access these fields via ObserverServiceBuilder, avoiding duplication.

@peterargue
Copy link
Contributor

are those fields used anywhere besides observer_builder.go?

@UlyanaAndrukhiv
Copy link
Contributor Author

Those fields used also in follower_builder.go

are those fields used anywhere besides observer_builder.go?

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

No branches or pull requests

3 participants