aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-29 23:04:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-30 21:03:10 +0800
commitde0549fabb8be4dbaf382ee68ec1b702cb0c5c97 (patch)
treebf3f8c78ff0d9e82e111d63ac12021d350520e8e /p2p/server_test.go
parent3fef60190384106af390dd23a65384b9cc6e4a28 (diff)
downloadgo-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.gz
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.bz2
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.lz
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.xz
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.zst
go-tangerine-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.zip
cmd/geth, cmd/mist, cmd/utils, eth, p2p: support trusted peers
Diffstat (limited to 'p2p/server_test.go')
-rw-r--r--p2p/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server_test.go b/p2p/server_test.go
index 53cc3c258..e99d37ed0 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -102,7 +102,7 @@ func TestServerDial(t *testing.T) {
// tell the server to connect
tcpAddr := listener.Addr().(*net.TCPAddr)
- srv.SuggestPeer(&discover.Node{IP: tcpAddr.IP, TCPPort: tcpAddr.Port})
+ srv.trustDial <-&discover.Node{IP: tcpAddr.IP, TCPPort: tcpAddr.Port}
select {
case conn := <-accepted: