Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: update bootnode text #30812

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ that other nodes can use to connect to it and exchange peer information. Make su
replace the displayed IP address information (most probably `[::]`) with your externally
accessible IP to get the actual `enode` URL.

*Note: You could also use a full-fledged `geth` node as a bootnode, but it's the less
recommended way.*
*Note: You could also use a full-fledged `geth` node as a bootnode, which is the recommended way,
but it is good practice to create a static nodekey with the bootnode utility*
Copy link
Contributor

@fjl fjl Nov 26, 2024

Choose a reason for hiding this comment

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

It's better to use this method for creating the key and ENR for configuration of other nodes.

$ go build ./cmd/devp2p
# Builds 'devp2p' tool. This tool is also part of the 'alltools' distribution bundle.

$ ./devp2p key generate node1.key
# file node1.key is created

$ ./devp2p key to-enr -ip 10.2.3.4 -udp 30303 -tcp 30303 node1.key 
# Prints the ENR for use in --bootnode flag of other nodes.
# Note this method requires knowing the IP/ports ahead of time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah perfect, will add that


#### Starting up your member nodes

Expand Down