-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
p2p/discover: improved node revalidation #29572
Merged
+931
−524
Merged
Changes from 33 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
bc62df2
internal/testlog: fix level matching
fjl 8f4c72c
p2p/discover: add debug API
fjl 37149d0
cmd/devp2p: add discv4 RPC server
fjl 1a6a64b
cmd/devp2p: add listen command
fjl f8c7448
cmd/devp2p: fix import
fjl df8e793
p2p/discover: new revalidation
fjl 70b8918
p2p/discover: fix build
fjl 0a4b314
p2p/discover: update
fjl fad3fe7
p2p/discover: fix some tests
fjl f2ac692
p2p/discover: fix shutdown hang
fjl 00e71f5
p2p/discover: fix test
fjl 1d896e8
p2p/discover: fix spin condition
fjl dc3f78b
p2p/discover: add live flag in debug node
fjl c1afb3c
p2p/discover: return nextTime from run()
fjl 7667ebf
p2p/discover: simplify rand timer
fjl b44673f
p2p/discover: move back to fast list when endpoint changed or dead
fjl 822b059
p2p/discover: fix crash in move
fjl c2ad0a7
p2p/discover: improve list moving
fjl 0b44fc4
p2p/discover: faster
fjl 30eb2bf
p2p/discover: remove logging checks in for dead nodes (it's always zero)
fjl 81e553f
p2p/discover: faster decay
fjl 0048a0f
Update p2p/discover/table_reval.go
fjl 041ce1b
p2p/discover: fix addedAt time
fjl 2c2c7f7
p2p/discover: rename add node methods
fjl ea9f0a4
p2p/discover: put back findnode request tracking
fjl edb3a12
p2p/discover: fix lookup failure log
fjl 1765712
p2p/discover: fix double lock
fjl 009658c
p2p/discover: seed nodes are not inbound
fjl 051ca13
p2p/discover: use lock in reseedingRandom
fjl 9faae76
p2p/discover: improve test reliability
fjl 008ff21
p2p/discover: fix race in test
fjl f96f596
p2p/discover: rename
fjl f0504f6
p2p/discover: simplify nextTime
fjl cda6f56
p2p/discover: rename fields
fjl 6e37d52
p2p/discover: change to / 3
fjl 9ec2553
p2p/discover: explain
fjl de7e1c7
p2p/discover: shuffle in appendLiveNodes
fjl 4ace554
p2p/discover: fix flaky test
fjl 16b4386
p2p/discover: add documentation
fjl 4386e8a
p2p: add accessors for discovery instances
fjl 6101ec3
node: add p2p debug API
fjl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
node
hasaddedToTable
field, and the json tag also contains ato
, so it looks a bit odd that the field name itself is missing theto
, as inAddedToTable
/AddedToBucket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's an inconsistency. I will fix.