mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/discover: fix comments
Co-Authored-By: fjl <fjl@users.noreply.github.com>
This commit is contained in:
parent
1f36fd3198
commit
5e8e20865a
1 changed files with 2 additions and 2 deletions
|
|
@ -586,7 +586,7 @@ func (tab *Table) addSeenNode(n *node) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// addLiveNode adds a node whose existence has been verified recently to the front of a
|
// addVerifiedNode adds a node whose existence has been verified recently to the front of a
|
||||||
// bucket. If the node is already in the bucket, it is moved to the front. If the bucket
|
// bucket. If the node is already in the bucket, it is moved to the front. If the bucket
|
||||||
// has no space, the node is added to the replacements list.
|
// has no space, the node is added to the replacements list.
|
||||||
//
|
//
|
||||||
|
|
@ -696,7 +696,7 @@ func (tab *Table) replace(b *bucket, last *node) *node {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// bump moves the given node to the front of the bucket entry list
|
// bumpInBucket moves the given node to the front of the bucket entry list
|
||||||
// if it is contained in that list.
|
// if it is contained in that list.
|
||||||
func (tab *Table) bumpInBucket(b *bucket, n *node) bool {
|
func (tab *Table) bumpInBucket(b *bucket, n *node) bool {
|
||||||
for i := range b.entries {
|
for i := range b.entries {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue