Skip to content

add dns discovery to sensor logic#409

Merged
minhd-vu merged 4 commits intomainfrom
dan/sensor_dns
Oct 24, 2024
Merged

add dns discovery to sensor logic#409
minhd-vu merged 4 commits intomainfrom
dan/sensor_dns

Conversation

@rebelArtists
Copy link
Copy Markdown
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
@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