diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-24 16:19:33 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-24 16:33:55 +0800 |
commit | 6def110c37d4d43402c4b658ce6b291400f840e5 (patch) | |
tree | fc1dbd81120ba8a51599bfb3dbc41f0eed9a2005 /p2p/discover/udp_test.go | |
parent | 971702e7a1a5e698721fa6147c444abad9c20141 (diff) | |
download | dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar.gz dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar.bz2 dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar.lz dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar.xz dexon-6def110c37d4d43402c4b658ce6b291400f840e5.tar.zst dexon-6def110c37d4d43402c4b658ce6b291400f840e5.zip |
cmd/bootnode, eth, p2p, p2p/discover: clean up the seeder and mesh into eth.
Diffstat (limited to 'p2p/discover/udp_test.go')
-rw-r--r-- | p2p/discover/udp_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go index 782895e46..299f94543 100644 --- a/p2p/discover/udp_test.go +++ b/p2p/discover/udp_test.go @@ -41,7 +41,7 @@ func newUDPTest(t *testing.T) *udpTest { remotekey: newkey(), remoteaddr: &net.UDPAddr{IP: net.IP{1, 2, 3, 4}, Port: 30303}, } - test.table, test.udp = newUDP(test.localkey, test.pipe, nil, "") + test.table, test.udp = newUDP(test.localkey, test.pipe, nil, nil) return test } @@ -157,7 +157,7 @@ func TestUDP_findnode(t *testing.T) { // ensure there's a bond with the test node, // findnode won't be accepted otherwise. - test.table.db.add(PubkeyID(&test.remotekey.PublicKey), test.remoteaddr, 99) + test.table.cache.add(PubkeyID(&test.remotekey.PublicKey), test.remoteaddr, 99) // check that closest neighbors are returned. test.packetIn(nil, findnodePacket, &findnode{Target: testTarget, Expiration: futureExp}) |