aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-15 14:38:41 +0800
committerzelig <viktor.tron@gmail.com>2015-03-15 14:38:41 +0800
commite1508327342135fc43676f3778db70814ef82569 (patch)
tree1bee7fe4701ba68795a6fa74bc2bc45a4d0a8040 /p2p/discover
parent7279a485c24de3f0aaf839e1884151322a97dbf7 (diff)
downloadgo-tangerine-e1508327342135fc43676f3778db70814ef82569.tar
go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.gz
go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.bz2
go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.lz
go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.xz
go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.zst
go-tangerine-e1508327342135fc43676f3778db70814ef82569.zip
p2p: server>discover table Self=Node exported
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.