updated id access in kadpeerinfo
This commit is contained in:
parent
5fc57c1076
commit
9c5cd05042
|
@ -16,7 +16,7 @@ class KadPeerInfo(PeerInfo):
|
|||
super(KadPeerInfo, self).__init__(peer_id, peer_data)
|
||||
|
||||
self.peer_id = peer_id.get_raw_id()
|
||||
self.long_id = int(digest(peer_id._id_str).hex(), 16)
|
||||
self.long_id = int(digest(peer_id.get_raw_id()).hex(), 16)
|
||||
|
||||
self.addrs = peer_data.get_addrs() if peer_data else None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user