mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-09 15:31:26 +00:00
add reissuing mechanism of records if addrs dont change
This commit is contained in:
@ -970,6 +970,13 @@ class IPeerStore(
|
||||
|
||||
# --------CERTIFIED-ADDR-BOOK----------
|
||||
|
||||
@abstractmethod
|
||||
def get_local_record(self) -> Optional["Envelope"]:
|
||||
"""Get the local-peer-record wrapped in Envelope"""
|
||||
|
||||
def set_local_record(self, envelope: "Envelope") -> None:
|
||||
"""Set the local-peer-record wrapped in Envelope"""
|
||||
|
||||
@abstractmethod
|
||||
def consume_peer_record(self, envelope: "Envelope", ttl: int) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user