erigon-pulse/cmd/observer
Andrew Ashikhmin eec5fa4d41
Add support for eth/67 (#4564)
* Add eth/67

* Listen to eth/66 on a separate port

* Fix compilation error

* Fix cfg66.ListenAddr

* Update erigon ports in README

* Expose port 30304 in docker

* P2pProtocolVersionFlag instead of second sentry

* Remove "66 by default" from usage

* Small comment
2022-07-08 11:14:16 +02:00
..
database observer: sentry candidates intake (#4321) 2022-06-01 22:48:24 +01:00
observer Add support for eth/67 (#4564) 2022-07-08 11:14:16 +02:00
reports observer: sentry candidates intake (#4321) 2022-06-01 22:48:24 +01:00
utils observer: sentry candidates intake (#4321) 2022-06-01 22:48:24 +01:00
main.go observer: sentry candidates intake (#4321) 2022-06-01 22:48:24 +01:00
README.md Observer - P2P network crawler (#3928) 2022-04-22 12:02:12 +01:00

Observer - P2P network crawler

Observer crawls the Ethereum network and collects information about the nodes.

Build

make observer

Run

observer --datadir ... --nat extip:<IP> --port <PORT>

Where IP is your public IP, and PORT has to be open for incoming UDP traffic.

See observer --help for available options.

Report

To get the report about the currently known network state run:

observer report --datadir ...

Description

Observer uses discv4 protocol to discover new nodes. Starting from a list of preconfigured "bootnodes" it uses FindNode to obtain their "neighbor" nodes, and then recursively crawls neighbors of neighbors and so on. Each found node is re-crawled again a few times. If the node fails to be pinged after maximum attempts, it is considered "dead", but still re-crawled less often.

A separate "diplomacy" process is doing "handshakes" to obtain information about the discovered nodes. It tries to get RLPx Hello and Eth Status from each node. The handshake repeats a few times according to the configured delays.