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

allow private peers param #580

Merged
merged 9 commits into from
Dec 10, 2024
Merged

allow private peers param #580

merged 9 commits into from
Dec 10, 2024

Conversation

felipemadero
Copy link
Contributor

Why this should be merged

Adds a param to allow private peers to the app request network, also adding config fields to relayer and aggregator
Depends on ava-labs/avalanchego#3573

How this works

How this was tested

CLI etna flows for fuji and local

How is this documented

go.mod Outdated
@@ -4,7 +4,7 @@ go 1.22.10

require (
github.com/alexliesenfeld/health v0.8.0
github.com/ava-labs/avalanchego v1.12.0-initial-poc.9.0.20241122192639-7c3ad181c928
github.com/ava-labs/avalanchego v1.12.1-0.20241203223023-13e07a1b3a1e
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's hold off on merging until #580 is merged to master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ava-labs/avalanchego#3573 has been merged

@@ -81,6 +81,7 @@ func NewNetwork(
trackedSubnets set.Set[ids.ID],
manuallyTrackedPeers []info.Peer,
cfg Config,
allowPrivateIPs bool,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can add a GetAllowPrivateIPs method to the peers.Config interface since it's present in both relayer and signature aggregator configs. That way we don't have to pass in this param.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@iansuvak iansuvak mentioned this pull request Dec 10, 2024
Copy link
Contributor

@iansuvak iansuvak left a comment

Choose a reason for hiding this comment

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

LGTM once the CI passes

@cam-schultz cam-schultz merged commit d7e0209 into main Dec 10, 2024
8 checks passed
@cam-schultz cam-schultz deleted the allow-private-peers-v2 branch December 10, 2024 18:51
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.

3 participants