mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
Refactor ID to take in type bytes only
This commit is contained in:
@ -22,7 +22,7 @@ class KadmeliaPeerRouter(IPeerRouting):
|
||||
:return: KadPeerInfo of specified peer
|
||||
"""
|
||||
# switching peer_id to xor_id used by kademlia as node_id
|
||||
xor_id = peer_id.get_xor_id()
|
||||
xor_id = peer_id.xor_id
|
||||
value = await self.server.get(xor_id)
|
||||
return decode_peerinfo(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user