aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/server_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2019-01-31 18:48:54 +0800
committerGitHub <noreply@github.com>2019-01-31 18:48:54 +0800
commita89170cfb2acd33aea99551cb9524bcdfaad96ec (patch)
tree87a777694952d52f1cd635457fe069d32b99e8bb /rpc/server_test.go
parent43e1b7b124d2bcfba98fbe54972a35c022d85bf2 (diff)
downloadgo-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar.gz
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar.bz2
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar.lz
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar.xz
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.tar.zst
go-tangerine-a89170cfb2acd33aea99551cb9524bcdfaad96ec.zip
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.
Diffstat (limited to 'rpc/server_test.go')
0 files changed, 0 insertions, 0 deletions