go-ethereum/p2p/discover
Felix Lange 86ec742f97 p2p/discover: improve table addition code (#18974)
This change clears up confusion around the two ways in which nodes
can be added to the table.

When a neighbors packet is received as a reply to findnode, the nodes
contained in the reply are added as 'seen' entries if sufficient space
is available.

When a ping is received and the endpoint verification has taken place,
the remote node is added as a 'verified' entry or moved to the front of
the bucket if present. This also updates the node's IP address and port
if they have changed.
2019-01-31 11:51:13 +01:00
..
node.go p2p/discover, p2p/enode: rework endpoint proof handling, packet logging (#18963) 2019-01-29 17:50:15 +01:00
ntp.go p2p, p2p/discover, p2p/nat: rework logging using context keys 2017-02-28 10:20:29 +01:00
table.go p2p/discover: improve table addition code (#18974) 2019-01-31 11:51:13 +01:00
table_test.go p2p/discover: improve table addition code (#18974) 2019-01-31 11:51:13 +01:00
table_util_test.go p2p/discover: improve table addition code (#18974) 2019-01-31 11:51:13 +01:00
udp.go p2p/discover: improve table addition code (#18974) 2019-01-31 11:51:13 +01:00
udp_test.go p2p/discover, p2p/enode: rework endpoint proof handling, packet logging (#18963) 2019-01-29 17:50:15 +01:00