Fix wrong peer id type used in KadPeerInfo

This commit is contained in:
NIC619
2019-07-31 21:35:50 +08:00
parent b928bdb356
commit f00e80bc25
4 changed files with 9 additions and 8 deletions

View File

@ -19,7 +19,7 @@ MAX_INLINE_KEY_LENGTH = 42
class ID:
_bytes: bytes
_xor_id: int
_xor_id: int = None
def __init__(self, peer_id_bytes: bytes) -> None:
self._bytes = peer_id_bytes