aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-23 23:47:24 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-24 16:23:20 +0800
commit5f735d6fce10b4552b0a6d3eb6503c5a302f4f61 (patch)
tree781d93a4c91ac664b95d97b96d3ac6605bfbb57c /p2p/discover/node.go
parent936c8e19ff3db376fdd1ed53772c51c817a72112 (diff)
downloaddexon-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.gz
dexon-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.zst
dexon-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.zip
cmd, eth, p2p, p2p/discover: init and clean up the seed cache
Diffstat (limited to 'p2p/discover/node.go')
-rw-r--r--p2p/discover/node.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/p2p/discover/node.go b/p2p/discover/node.go
index d8a5cc351..3e79ddb53 100644
--- a/p2p/discover/node.go
+++ b/p2p/discover/node.go
@@ -387,3 +387,7 @@ func (db *nodeDB) add(id NodeID, addr *net.UDPAddr, tcpPort uint16) *Node {
db.update(n)
return n
}
+
+func (db *nodeDB) close() {
+ db.ldb.Close()
+}