@ -616,6 +616,7 @@ class AddressSynchronizer(Logger):
self.up_to_date = up_to_date
if self.network:
self.network.notify('status')
self.logger.info(f'set_up_to_date: {up_to_date}')
def is_up_to_date(self):
with self.lock: return self.up_to_date
@ -62,6 +62,7 @@ LN_P2P_NETWORK_TIMEOUT = 20
class Peer(Logger):
LOGGING_SHORTCUT = 'P'
def __init__(self, lnworker: Union['LNGossip', 'LNWallet'], pubkey:bytes, transport: LNTransportBase):
self._sent_init = False # type: bool
@ -366,6 +366,7 @@ class LNWorker(Logger):
class LNGossip(LNWorker):
max_age = 14*24*3600
LOGGING_SHORTCUT = 'g'
def __init__(self, network):
seed = os.urandom(32)