Merge hazelnuts that have the same id
This commit is contained in:
parent
57cdfebff4
commit
380f808e50
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue