mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
updated id access in kadpeerinfo
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user