aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 04:27:34 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 04:27:34 +0800
commit917050dc30d8717d7e0bba1257165c1aec44887f (patch)
tree712f8823391286438a0e5c3d1f53c4682254650e /p2p/discover
parentfe819f3b9f7a2d8d842c53b7269ccceace533569 (diff)
parent53104b09fa823cb5457960b8518b9650a5b083da (diff)
downloaddexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar.gz
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar.bz2
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar.lz
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar.xz
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.tar.zst
dexon-917050dc30d8717d7e0bba1257165c1aec44887f.zip
Merge branch 'develop' into rpcfrontier
Diffstat (limited to 'p2p/discover')
-rw-r--r--p2p/discover/table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index e3bec9328..33b705a12 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -51,9 +51,9 @@ func newTable(t transport, ourID NodeID, ourAddr *net.UDPAddr) *Table {
return tab
}
-// Self returns the local node ID.
-func (tab *Table) Self() NodeID {
- return tab.self.ID
+// Self returns the local node.
+func (tab *Table) Self() *Node {
+ return tab.self
}
// Close terminates the network listener.