Closed devos50 closed 4 years ago
Normal Peer objects definitely always have an address field:
https://github.com/Tribler/py-ipv8/blob/239912f03b107d8d491b7728312ce3890d23b38d/ipv8/peer.py#L27
I guess something is injecting Peer subclasses without one (which can happen if you forget to call super(...).__init__
)?
This is the code it fails on (line 188), also the only way to insert into reverse_ip_lookup
:
This dict cannot even contain a Peer
that did not have an address
to begin with (see line 182 -- which is the only code actually adding to this dictionary).
Second thought: possibly something is calling del
on the Peer object externally.
As reported by a Tribler RC4 user: