diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-22 00:41:46 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-22 00:41:46 +0800 |
commit | cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a (patch) | |
tree | a016eb8074805db7c81c5e3aba52bccc51884db6 /p2p/discover/table.go | |
parent | af24c271c7a757f80968a4d50a65a416e2ac9cdd (diff) | |
download | dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar.gz dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar.bz2 dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar.lz dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar.xz dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.tar.zst dexon-cbd3ae6906ece36b1b3e5e7af4d7cb55e784818a.zip |
p2p/discover: fix #838, evacuate self entries from the node db
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 5e6dd8d0d..91d617f05 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -68,10 +68,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, Version) + db, err := newNodeDB(nodeDBPath, Version, ourID) if err != nil { glog.V(logger.Warn).Infoln("Failed to open node database:", err) - db, _ = newNodeDB("", Version) + db, _ = newNodeDB("", Version, ourID) } tab := &Table{ net: t, |