diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-23 18:11:21 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-30 21:02:23 +0800 |
commit | 72ab6d325555c742c6b70202d865ec23b50734d6 (patch) | |
tree | 92522e695c39ab4ee31321b5b469611f001fd684 /p2p/discover/table_test.go | |
parent | b34a8ef624499e15cc3a2a51bddd94391f9b993e (diff) | |
download | dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar.gz dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar.bz2 dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar.lz dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar.xz dexon-72ab6d325555c742c6b70202d865ec23b50734d6.tar.zst dexon-72ab6d325555c742c6b70202d865ec23b50734d6.zip |
p2p/discover: track sha3(ID) in Node
Diffstat (limited to 'p2p/discover/table_test.go')
-rw-r--r-- | p2p/discover/table_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go index e7394756d..41c57ce21 100644 --- a/p2p/discover/table_test.go +++ b/p2p/discover/table_test.go @@ -224,7 +224,7 @@ func TestTable_Lookup(t *testing.T) { t.Fatalf("lookup on empty table returned %d results: %#v", len(results), results) } // seed table with initial node (otherwise lookup will terminate immediately) - tab.add([]*Node{newNode(randomID(target, 200), &net.UDPAddr{Port: 200})}) + tab.add([]*Node{newNode(randomID(target, 200), net.ParseIP("127.0.0.1"), 200, 200)}) results := tab.Lookup(target) t.Logf("results:") |