diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-18 04:15:23 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-18 04:15:23 +0800 |
commit | 786a58d8b0188700edec824f74606a3980132f50 (patch) | |
tree | cf247ed9ca2038e9a11d000ad03b2c75b9056195 /p2p/discover | |
parent | 9663493ba0d493ec62153e725b5d30340f2aa525 (diff) | |
parent | 17cd7a5817ce4acbfb85ebe1977952027167bd1c (diff) | |
download | dexon-786a58d8b0188700edec824f74606a3980132f50.tar dexon-786a58d8b0188700edec824f74606a3980132f50.tar.gz dexon-786a58d8b0188700edec824f74606a3980132f50.tar.bz2 dexon-786a58d8b0188700edec824f74606a3980132f50.tar.lz dexon-786a58d8b0188700edec824f74606a3980132f50.tar.xz dexon-786a58d8b0188700edec824f74606a3980132f50.tar.zst dexon-786a58d8b0188700edec824f74606a3980132f50.zip |
Merge pull request #485 from ethersphere/frontier/nodeadmin.js
Frontier console node admin interface
Diffstat (limited to 'p2p/discover')
-rw-r--r-- | p2p/discover/table.go | 6 |
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. |