You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Motivation**
Implements missing support for `enr` strings when parsing bootnodes and
retrieving local enr via `admin_nodeInfo`
**Description**
- Adds possibility to construct a `Node` struct from an `enr` string
- Adds `enr` url field in `admin_nodeInfo` endpoint
- It also fixes the `id` field in the `admin_nodeInfo` which is not the
actual public key but the keccak256 digest of the public key.
**Testing**
- Start an `el` node and send a rpc request to `admin_nodeInfo` and
locate the `enr` field:
```shell
curl http://localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}'
```
- Start an `ethrex` node with the `enr` string in the bootnodes param:
```shell
RUST_LOG=4 cargo run --bin ethrex -- \
--network test_data/genesis-kurtosis.json \
--http.port $HTTP_PORT \
--p2p.port $P2P_PORT \
--discovery.port $P2P_PORT \
--bootnodes $BOOTNODES
```
Note: this pr points to #1823 because it follows the refactor for the
`BootNodes` struct.
Closes#1757
We should implement Ethereum Node Records (ENR) strings encoding and decoding.
This consists of:
NodeRecord
into an ENR string.NodeRecord
struct.admin_nodeInfo
RPC alongsideenode
.See:
The text was updated successfully, but these errors were encountered: