diff --git a/p2p/server.go b/p2p/server.go index f70ebf721..04fdecaec 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -370,7 +370,7 @@ func (srv *Server) RemoveTrustedPeer(node *enode.Node) { } } -// SubscribePeers subscribes the given channel to peer events +// SubscribeEvents subscribes the given channel to peer events func (srv *Server) SubscribeEvents(ch chan *PeerEvent) event.Subscription { return srv.peerFeed.Subscribe(ch) }