mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: update comment in test
This commit is contained in:
parent
66998051e9
commit
8d3df60b64
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ func TestTable_addInboundNodeUpdateV4Accept(t *testing.T) {
|
||||||
checkBucketContent(t, tab, []*enode.Node{n1})
|
checkBucketContent(t, tab, []*enode.Node{n1})
|
||||||
|
|
||||||
// Add an updated version with changed IP.
|
// Add an updated version with changed IP.
|
||||||
// The update will be accepted because it has seq=0.
|
// The update will be accepted because it is inbound.
|
||||||
n1v2 := enode.NewV4(&key.PublicKey, net.IP{99, 99, 99, 99}, 9000, 9000)
|
n1v2 := enode.NewV4(&key.PublicKey, net.IP{99, 99, 99, 99}, 9000, 9000)
|
||||||
tab.addInboundNode(wrapNode(n1v2))
|
tab.addInboundNode(wrapNode(n1v2))
|
||||||
checkBucketContent(t, tab, []*enode.Node{n1v2})
|
checkBucketContent(t, tab, []*enode.Node{n1v2})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue