mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-07 04:34:05 +00:00
don't update recv time for known nodes that ping us or known peers
This commit is contained in:
@ -180,7 +180,7 @@ func (t *dht) handleReq(req *dhtReq) {
|
||||
coords: req.Coords,
|
||||
}
|
||||
imp := t.getImportant()
|
||||
if t.isImportant(&info, imp) {
|
||||
if _, isIn := t.table[*info.getNodeID()]; !isIn || t.isImportant(&info, imp) {
|
||||
t.insert(&info)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user