Skip to content

Document experimental disc v5 support#1939

Open
alexandratran wants to merge 7 commits intobesu-eth:mainfrom
alexandratran:1920-enr-bootnodes
Open

Document experimental disc v5 support#1939
alexandratran wants to merge 7 commits intobesu-eth:mainfrom
alexandratran:1920-enr-bootnodes

Conversation

Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
besu-docs Ready Ready Preview, Comment Mar 27, 2026 3:59pm

Request Review

Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
Copy link
Copy Markdown

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bgravenorst
Copy link
Copy Markdown
Contributor

Is this related to https://github.com/besu-eth/besu-docs/pull/1926/changes ?

@usmansaleem
Copy link
Copy Markdown

Is this related to https://github.com/besu-eth/besu-docs/pull/1926/changes ?

It partially covers it. enr will be added, it doesn't replace enode in the admin_node.

I also responded to @alexandratran directly. Here is the discussion:

There are some additional cli options that we need to document along with this new "enr" changes, may be in a separate PR.

Regarding the current PR, one thing to note that the "enr" entries are only used if 'discovery v5" is enabled (as you mentioned in the "tip").

I need to come back to you regarding the --nat-method comment. The nat-method may not work with ipv6. In regards to discovery v5, we have started supporting dual-stack binding i.e. discovery library (udp) and rlpx service (tcp) can listen both on ipv4 and ipv6. However, with ipv6, the --nat-method is not tested (it is only meant to work with ipv4). If user specify --p2p-host=IPv6 Address, then --nat-method may not work or incorrectly override it.

Anyways, here is the cli help with new options:

P2P Discovery Options
...
      --bootnodes[=<enode://id@host:port>|<enr:base64Enr>[,<enode://id@host:port>|<enr:base64Enr>...]...]
                             Comma separated enode or ENR URLs for P2P discovery bootstrap. Must be either all enode URLs (discovery V4) or all
                               ENR URLs (discovery V5). Default is a predefined list.
      --p2p-host=<HOST>      IP address this node advertises to its peers (default: 127.0.0.1)
      --p2p-host-ipv6=<HOST> IPv6 address this node advertises to its peers (default: none)
      --p2p-interface=<HOST> Network interface address to listen on (default: 0.0.0.0)
      --p2p-interface-ipv6=<HOST>
                             IPv6 network interface address to listen on (default: none)
      --p2p-ipv6-outbound-enabled
                             Prefer IPv6 addresses for outbound P2P connections when peers advertise both IPv4 and IPv6.
                             When false (default), IPv4 is preferred.
                             If a peer only advertises one address family, it is always used.
                             (default: false)
      --p2p-port=<PORT>      Port on which to listen for P2P communication (default: 30303)
      --p2p-port-ipv6=<PORT> Port on which to listen for IPv6 P2P communication (default: 30404)
      ```

Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
@alexandratran alexandratran changed the title Document ENR bootnodes Document experimental disc v5 support Mar 26, 2026
Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
Signed-off-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>

```bash
besu --bootnodes=/etc/besu/bootnodes.txt,https://example.com/enodes.txt,enode://c35c3...d615f@1.2.3.4:30303
besu --genesis-file=privateNetworkGenesis.json --data-path=nodeDataPath --bootnodes=enode://c35c3ec90a8a51fd5703594c6303382f3ae6b2ecb99bab2c04b3794f2bc3fc2631dabb0c08af795787a6c004d8f532230ae6e9925cbbefb0b28b79295d615f@127.0.0.1:30303
Copy link
Copy Markdown

@usmansaleem usmansaleem Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: actually bootnodes can still take txt files or url as well, its just that they must either specify all enodes or all enrs (based on discovery v5 or v4).

Copy link
Copy Markdown

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Update --net-restrict usage Document discovery v5 support in genesis file admin_nodeInfo update required.

3 participants