Merge pull request #27 from zixuanzh/peer-info

Peer info
This commit is contained in:
ZX
2018-10-30 00:07:08 +01:00
committed by GitHub
7 changed files with 39 additions and 19 deletions

View File

@ -20,7 +20,8 @@ class IPeerStore(ABC, IAddrBook, IPeerMetadata):
def get_protocols(self, peer_id):
"""
:param peer_id: peer ID to get protocols for
:return: protocols (as strings), error
:return: protocols (as strings)
:raise Exception: peer ID not found exception
"""
pass
@ -29,7 +30,7 @@ class IPeerStore(ABC, IAddrBook, IPeerMetadata):
"""
:param peer_id: peer ID to add protocols for
:param protocols: protocols to add
:return: error
:raise Exception: peer ID not found
"""
pass
@ -38,7 +39,7 @@ class IPeerStore(ABC, IAddrBook, IPeerMetadata):
"""
:param peer_id: peer ID to set protocols for
:param protocols: protocols to set
:return: error
:raise Exception: peer ID not found
"""
pass