aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-30 21:15:29 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-30 21:15:29 +0800
commit701591b403a8bae8c1dfb648a49d587968ff0c6a (patch)
tree9e253db29faf15056fa72f7a0094206b5ef39beb /p2p/server_test.go
parent1528dbc17101597348eefe3f3fb8d4f0d5c54b3c (diff)
downloaddexon-701591b403a8bae8c1dfb648a49d587968ff0c6a.tar.gz
dexon-701591b403a8bae8c1dfb648a49d587968ff0c6a.tar.zst
dexon-701591b403a8bae8c1dfb648a49d587968ff0c6a.zip
cmd, eth, p2p: fix review issues enumerated by Felix
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 a79679ac1..3e3fd6cc0 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -260,7 +260,7 @@ func TestServerTrustedPeers(t *testing.T) {
trusted := &discover.Node{
ID: discover.PubkeyID(&key.PublicKey),
}
- server.TrustPeer(trusted)
+ server.AddPeer(trusted)
conn, err := dialer.Dial("tcp", server.ListenAddr)
if err != nil {