Change peerinfo to a class rather than a dictionary

This commit is contained in:
Stuckinaboot
2018-10-29 14:09:47 +01:00
parent e93ced5f6a
commit 95d3847d5a
3 changed files with 8 additions and 4 deletions

4
peer/peerinfo.py Normal file
View File

@ -0,0 +1,4 @@
class PeerInfo:
def __init__(self, peer_id, peer_data):
self.peer_id = peer_id
self.addrs = peer_data.get_addrs()