mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Refactor ID to take in type bytes only
This commit is contained in:
@ -19,7 +19,7 @@ def test_init_():
|
||||
random_id_string = ""
|
||||
for _ in range(10):
|
||||
random_id_string += random.SystemRandom().choice(ALPHABETS)
|
||||
peer_id = ID(random_id_string)
|
||||
peer_id = ID(random_id_string.encode())
|
||||
peer_info = PeerInfo(peer_id, peer_data)
|
||||
|
||||
assert peer_info.peer_id == peer_id
|
||||
|
||||
Reference in New Issue
Block a user