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

[Merged by Bors] - Ignore self as a bootnode #4110

Closed
wants to merge 1 commit into from

Conversation

AgeManning
Copy link
Member

If a node is also a bootnode it can try to add itself to its own local routing table which will emit an error.

The error is entirely harmless but we would prefer to avoid emitting the error.

This PR does not attempt to add a boot node ENR if that ENR corresponds to our local peer-id/node-id.

@AgeManning AgeManning added the ready-for-review The code is ready for review label Mar 20, 2023
@AgeManning AgeManning added the v4.0.0 Mainnet Capella release expected late March 2023 label Mar 20, 2023
Copy link
Member

@ethDreamer ethDreamer left a comment

Choose a reason for hiding this comment

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

lgtm!

@AgeManning AgeManning added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Mar 20, 2023
@AgeManning
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Mar 20, 2023
If a node is also a bootnode it can try to add itself to its own local routing table which will emit an error. 

The error is entirely harmless but we would prefer to avoid emitting the error. 

This PR does not attempt to add a boot node ENR if that ENR corresponds to our local peer-id/node-id.
@bors bors bot changed the title Ignore self as a bootnode [Merged by Bors] - Ignore self as a bootnode Mar 21, 2023
@bors bors bot closed this Mar 21, 2023
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
If a node is also a bootnode it can try to add itself to its own local routing table which will emit an error. 

The error is entirely harmless but we would prefer to avoid emitting the error. 

This PR does not attempt to add a boot node ENR if that ENR corresponds to our local peer-id/node-id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. v4.0.0 Mainnet Capella release expected late March 2023
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants