Update peer store interface

This commit is contained in:
NIC619
2019-11-25 17:16:47 +08:00
parent e49de15227
commit 8b4022328d
4 changed files with 172 additions and 16 deletions

View File

@ -7,9 +7,6 @@ from .id import ID
class IAddrBook(ABC):
def __init__(self) -> None:
pass
@abstractmethod
def add_addr(self, peer_id: ID, addr: Multiaddr, ttl: int) -> None:
"""