aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-07 07:15:04 +0800
committerFelix Lange <fjl@twurst.com>2015-02-07 07:46:56 +0800
commit2cf4fed11b01bb99e08b838f7df2b9396f42f758 (patch)
treec4c6a63adeaa80f9b3150cf7e58d0bdcbf05bb28 /p2p/server.go
parente34d1341022a51d8a86c4836c91e4e0ded888d27 (diff)
downloaddexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar.gz
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar.bz2
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar.lz
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar.xz
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.tar.zst
dexon-2cf4fed11b01bb99e08b838f7df2b9396f42f758.zip
cmd/mist, eth, javascript, p2p: use Node URLs for peer suggestions
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/server.go b/p2p/server.go
index c6d7fc2e8..bb3101485 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -135,8 +135,8 @@ func (srv *Server) PeerCount() int {
// SuggestPeer creates a connection to the given Node if it
// is not already connected.
-func (srv *Server) SuggestPeer(ip net.IP, port int, id discover.NodeID) {
- srv.peerConnect <- &discover.Node{ID: id, IP: ip, TCPPort: port}
+func (srv *Server) SuggestPeer(n *discover.Node) {
+ srv.peerConnect <- n
}
// Broadcast sends an RLP-encoded message to all connected peers.