diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-29 23:04:08 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-30 21:03:10 +0800 |
commit | de0549fabb8be4dbaf382ee68ec1b702cb0c5c97 (patch) | |
tree | bf3f8c78ff0d9e82e111d63ac12021d350520e8e /p2p/server_test.go | |
parent | 3fef60190384106af390dd23a65384b9cc6e4a28 (diff) | |
download | go-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.go | 2 |
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: |