aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/table.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-18 04:15:23 +0800
committerFelix Lange <fjl@twurst.com>2015-03-18 04:15:23 +0800
commit786a58d8b0188700edec824f74606a3980132f50 (patch)
treecf247ed9ca2038e9a11d000ad03b2c75b9056195 /p2p/discover/table.go
parent9663493ba0d493ec62153e725b5d30340f2aa525 (diff)
parent17cd7a5817ce4acbfb85ebe1977952027167bd1c (diff)
downloadgo-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar.gz
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar.bz2
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar.lz
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar.xz
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.tar.zst
go-tangerine-786a58d8b0188700edec824f74606a3980132f50.zip
Merge pull request #485 from ethersphere/frontier/nodeadmin.js
Frontier console node admin interface
Diffstat (limited to 'p2p/discover/table.go')
-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.