This commit is contained in:
NIC619
2019-11-25 17:32:53 +08:00
parent e28a974425
commit 566e4c080d
5 changed files with 17 additions and 12 deletions

View File

@ -1,5 +1,5 @@
from abc import abstractmethod
from typing import Any, List, Sequence, Tuple
from typing import Any, List, Sequence, Set
from multiaddr import Multiaddr
@ -132,7 +132,7 @@ class IPeerStore(IAddrBook, IPeerMetadata):
"""
@abstractmethod
def peers_with_keys(self) -> Tuple[ID]:
def peers_with_keys(self) -> Set[ID]:
"""
:return: all of the peer IDs which has pubkey/privkey stored in peer store
"""