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

Use the new p2p.Run API #329

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Use the new p2p.Run API #329

merged 1 commit into from
Aug 22, 2024

Conversation

bruce-riley
Copy link
Contributor

@bruce-riley bruce-riley commented Jun 26, 2024

This modifies the fly and other gossip listening tools to use the new p2p.Run API.

It also adds support for observation batches.

Finally, removes the hardcoded bootstrap parameters in favor of the ones defined in node/pkg/p2p/network_consts.go.

@evan-gray evan-gray force-pushed the use_new_p2p_run_api branch from 73aa410 to 2e94bba Compare July 1, 2024 12:57
@bruce-riley bruce-riley marked this pull request as ready for review August 19, 2024 17:34
@bruce-riley bruce-riley marked this pull request as draft August 19, 2024 17:36
Copy link
Contributor

@evan-gray evan-gray left a comment

Choose a reason for hiding this comment

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

repeated the comments about the unused components just to keep track. overall the less code is great, mostly concerned about fly/main.go where there doesn't appear to be a way to weak the gossip params anymore.

fly/go.mod Outdated Show resolved Hide resolved
fly/cmd/track_pyth/main.go Show resolved Hide resolved
fly/cmd/track_gossip/main.go Show resolved Hide resolved
fly/cmd/prom_gossip/main.go Show resolved Hide resolved
fly/cmd/observation_stats/main.go Show resolved Hide resolved
fly/cmd/historical_uptime/main.go Show resolved Hide resolved
fly/cmd/heartbeats/main.go Show resolved Hide resolved
fly/cmd/fly/main.go Show resolved Hide resolved
@bruce-riley bruce-riley force-pushed the use_new_p2p_run_api branch 3 times, most recently from eabbccc to f6a4db6 Compare August 21, 2024 14:46
@bruce-riley bruce-riley marked this pull request as ready for review August 21, 2024 15:07
Copy link
Contributor

@evan-gray evan-gray left a comment

Choose a reason for hiding this comment

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

nice. one small change please :)

fly/cmd/prom_gossip/main.go Outdated Show resolved Hide resolved
panoel
panoel previously approved these changes Aug 21, 2024
Copy link
Contributor

@bingyuyap bingyuyap left a comment

Choose a reason for hiding this comment

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

Just some questions that I'm unclear with, also commented on parts that can be removed like single observations and comments due to the batch observation addition

fly/cmd/track_gossip/main.go Show resolved Hide resolved
fly/cmd/track_pyth/main.go Show resolved Hide resolved
fly/cmd/track_pyth/main.go Show resolved Hide resolved
@bruce-riley bruce-riley merged commit b1432ad into main Aug 22, 2024
3 checks passed
@bruce-riley bruce-riley deleted the use_new_p2p_run_api branch August 22, 2024 16:57
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.

4 participants