diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-27 20:28:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-27 20:28:17 +0800 |
commit | a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7 (patch) | |
tree | a2daed4ae55908b685efdbca7f230d3e5ce55dc1 /p2p/discover/table.go | |
parent | 75fd738dea37387e465e8fc05b163adfb5ab34ce (diff) | |
download | dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar.gz dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar.bz2 dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar.lz dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar.xz dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.tar.zst dexon-a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7.zip |
p2p/discover: parametrize nodedb version, add persistency tests
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r-- | p2p/discover/table.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go index ecfb8d672..11bdff198 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -63,10 +63,10 @@ type bucket struct { func newTable(t transport, ourID NodeID, ourAddr *net.UDPAddr, nodeDBPath string) *Table { // If no node database was given, use an in-memory one - db, err := newNodeDB(nodeDBPath) + db, err := newNodeDB(nodeDBPath, Version) if err != nil { glog.V(logger.Warn).Infoln("Failed to open node database:", err) - db, _ = newNodeDB("") + db, _ = newNodeDB("", Version) } tab := &Table{ net: t, |