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

add dns discovery to sensor logic #409

Merged
merged 4 commits into from
Oct 24, 2024
Merged

add dns discovery to sensor logic #409

merged 4 commits into from
Oct 24, 2024

Conversation

rebelArtists
Copy link
Contributor

@rebelArtists rebelArtists commented Oct 23, 2024

Description

new features:

  • on start, force add all enodes from Polygon's dns discovery, dramatically increasing peer count to several hundred peers
  • add hourly ticker to recurrently add new peers from DNS ENR tree

Testing

smoke tests locally working as expected and seeing several hundred peers via prometheus port:
go run main.go p2p sensor nodes.json \ --network-id 137 \ --sensor-id mvu \ --write-blocks=false \ --write-block-events=false \ --write-txs=false \ --write-tx-events=false \ --rpc "https://polygon-rpc.com" \ --discovery-dns "enrtree://AKUEZKN7PSKVNR65FZDHECMKOJQSGPARGTPPBI7WS2VUL4EGR6XPC@pos.polygon-peers.io" \ --verbosity 700 --quick-start --key "d8168fb642add845920b91291ec8bbf7c4d5dd2aeaed330fb9e75d766b957f53"

image image

@rebelArtists rebelArtists marked this pull request as ready for review October 24, 2024 07:41
@minhd-vu minhd-vu merged commit 43b4e81 into main Oct 24, 2024
6 checks passed
@minhd-vu minhd-vu deleted the dan/sensor_dns branch October 24, 2024 14:02
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