diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 04:48:57 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 04:48:57 +0800 |
commit | 24d44f35f2cf17b07330a7e7be79abc2b6b92fc6 (patch) | |
tree | a64252ccd5ed06a9553af310a572e1dc95e92e55 /p2p/handshake_test.go | |
parent | 323216ed85b48abec07266a203b731e7491d4286 (diff) | |
parent | 2adcc31bb48af0dee979f2b4ab255d9af21fd097 (diff) | |
download | go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.gz go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.bz2 go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.lz go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.xz go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.zst go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.zip |
Merge pull request #791 from fjl/discover-sha3-distance
p2p/discover: sha3-based node distance
Diffstat (limited to 'p2p/handshake_test.go')
-rw-r--r-- | p2p/handshake_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/p2p/handshake_test.go b/p2p/handshake_test.go index c22af7a9c..f618ef20d 100644 --- a/p2p/handshake_test.go +++ b/p2p/handshake_test.go @@ -119,14 +119,14 @@ func TestSetupConn(t *testing.T) { prv0, _ := crypto.GenerateKey() prv1, _ := crypto.GenerateKey() node0 := &discover.Node{ - ID: discover.PubkeyID(&prv0.PublicKey), - IP: net.IP{1, 2, 3, 4}, - TCPPort: 33, + ID: discover.PubkeyID(&prv0.PublicKey), + IP: net.IP{1, 2, 3, 4}, + TCP: 33, } node1 := &discover.Node{ - ID: discover.PubkeyID(&prv1.PublicKey), - IP: net.IP{5, 6, 7, 8}, - TCPPort: 44, + ID: discover.PubkeyID(&prv1.PublicKey), + IP: net.IP{5, 6, 7, 8}, + TCP: 44, } hs0 := &protoHandshake{ Version: baseProtocolVersion, |