aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/database.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/discv5/database.go')
-rw-r--r--p2p/discv5/database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discv5/database.go b/p2p/discv5/database.go
index 7c47c27fd..44be8a74e 100644
--- a/p2p/discv5/database.go
+++ b/p2p/discv5/database.go
@@ -269,7 +269,7 @@ func (db *nodeDB) expireNodes() error {
continue
}
// Skip the node if not expired yet (and not self)
- if bytes.Compare(id[:], db.self[:]) != 0 {
+ if !bytes.Equal(id[:], db.self[:]) {
if seen := db.lastPong(id); seen.After(threshold) {
continue
}