Layr-Labs / eigenda

Secure, high-throughput, and decentralized Data Availability
https://www.eigenlayer.xyz/
Other
220 stars 168 forks source link

Operator network scanning tool #705

Closed pschork closed 2 weeks ago

pschork commented 1 month ago

Scans operator network to collect semver node info Targets node retrieval port allowing script to run from any host. Note that we are getting a few refused requests which implies that some operators might be filtering/whitelisting retrieval port.

Current testnet results

+------------+-------+
| SEMVER     | COUNT |
+------------+-------+
| refused    |    14 |
| timeout    |    18 |
| <0.8.0     |    55 |
| 0.8.0-rc.1 |     7 |
+------------+-------+
| TOTAL      |    94 |
+------------+-------+

Example output

opscan % ./bin/opscan                                                                               
Aug 16 00:09:07.175 WRN cmd/main.go:111 NodeInfo semver=refused error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 209.127.245.214:32005: connect: connection refused\""
Aug 16 00:09:07.798 WRN cmd/main.go:111 NodeInfo semver=<0.8.0 error="rpc error: code = Unimplemented desc = unknown method NodeInfo for service node.Retrieval"
Aug 16 00:09:21.333 WRN cmd/main.go:111 NodeInfo semver=timeout error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"
Aug 16 00:09:11.160 INF cmd/main.go:115 NodeInfo semver=0.8.0-rc.1 os=linux arch=amd64 numCpu=12 memBytes=33535475712

Checks

pschork commented 1 month ago

Will parallelize the scan to speed things up

jianoaix commented 1 month ago

Shall we put it to dataapi so it can reach the port as disperser, and get NodeInfo more reliably?

pschork commented 1 month ago
+-------------+-------+
| SEMVER      | COUNT |
+-------------+-------+
| 0.7.5-pre.1 |     1 |
| src-compile |     1 |
| timeout     |     2 |
| 0.8.0-rc.1  |    28 |
| 0.8.0       |     4 |
| <0.8.0      |   114 |
| refused     |     6 |
+-------------+-------+
| TOTAL       |   156 |
+-------------+-------+