Merge hazelnuts that have the same id

This commit is contained in:
Yohann D'ANELLO 2021-01-08 17:52:27 +01:00
parent 57cdfebff4
commit 380f808e50
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 0 deletions

View File

@ -943,6 +943,8 @@ class User(Peer):
if other_peer.id == peer.id > 0 and other_peer != peer: if other_peer.id == peer.id > 0 and other_peer != peer:
# The peer with the same id is known as a different address. We merge everything # The peer with the same id is known as a different address. We merge everything
peer.merge(other_peer) peer.merge(other_peer)
for other_addr in peer.addresses:
self.neighbours[other_addr] = peer
self.data_lock.release() self.data_lock.release()