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

Conversation

MariusVanDerWijden
Copy link
Member

@MariusVanDerWijden MariusVanDerWijden commented Nov 26, 2024

Fix some note. We should do a bigger overhaul of the README and maybe rethink the bootnode binary

*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

@MariusVanDerWijden
Copy link
Member Author

closing in favor of #30813

@MariusVanDerWijden MariusVanDerWijden deleted the MariusVanDerWijden-patch-1 branch November 26, 2024 11:29
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.

2 participants