diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-30 17:41:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-30 21:06:47 +0800 |
commit | 1528dbc17101597348eefe3f3fb8d4f0d5c54b3c (patch) | |
tree | 20f7fb8fa6d850ebc1b72740c7f9abaf548c16d5 /p2p/handshake_test.go | |
parent | 14f32a0c3a30c172c62272aa93f97e8a3d72ddcb (diff) | |
download | go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar.gz go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar.bz2 go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar.lz go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar.xz go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.tar.zst go-tangerine-1528dbc17101597348eefe3f3fb8d4f0d5c54b3c.zip |
p2p: add trust check to handshake, test privileged connectivity
Conflicts:
p2p/server_test.go
Diffstat (limited to 'p2p/handshake_test.go')
-rw-r--r-- | p2p/handshake_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/handshake_test.go b/p2p/handshake_test.go index c22af7a9c..5e63e5c39 100644 --- a/p2p/handshake_test.go +++ b/p2p/handshake_test.go @@ -143,7 +143,7 @@ func TestSetupConn(t *testing.T) { done := make(chan struct{}) go func() { defer close(done) - conn0, err := setupConn(fd0, prv0, hs0, node1, false) + conn0, err := setupConn(fd0, prv0, hs0, node1, false, nil) if err != nil { t.Errorf("outbound side error: %v", err) return @@ -156,7 +156,7 @@ func TestSetupConn(t *testing.T) { } }() - conn1, err := setupConn(fd1, prv1, hs1, nil, false) + conn1, err := setupConn(fd1, prv1, hs1, nil, false, nil) if err != nil { t.Fatalf("inbound side error: %v", err) } |