def __init__(self, xprv, features: LnFeatures):
    Logger.__init__(self)
    NetworkRetryManager.__init__(self, max_retry_delay_normal=3600, init_retry_delay_normal=600, max_retry_delay_urgent=300, init_retry_delay_urgent=4)
    self.lock = threading.RLock()
    self.node_keypair = generate_keypair(BIP32Node.from_xkey(xprv), LnKeyFamily.NODE_KEY)
    self.backup_key = generate_keypair(BIP32Node.from_xkey(xprv), LnKeyFamily.BACKUP_CIPHER).privkey
    self._peers = {}
    self.taskgroup = SilentTaskGroup()
    self.listen_server = None
    self.features = features
    self.network = None
    self.config = None
    self.stopping_soon = False
    util.register_callback(self.on_proxy_changed, ['proxy_set'])
def __init__(self, xprv, features: LnFeatures):
    Logger.__init__(self)
    NetworkRetryManager.__init__(self, max_retry_delay_normal=3600, init_retry_delay_normal=600, max_retry_delay_urgent=300, init_retry_delay_urgent=4)
    self.lock = threading.RLock()
    self.node_keypair = generate_keypair(BIP32Node.from_xkey(xprv), LnKeyFamily.NODE_KEY)
    self.backup_key = generate_keypair(BIP32Node.from_xkey(xprv), LnKeyFamily.BACKUP_CIPHER).privkey
    self._peers = {}
    self.taskgroup = SilentTaskGroup()
    self.listen_server = None
    self.features = features
    self.network = None
    self.config = None
    self.stopping_soon = False
    util.register_callback(self.on_proxy_changed, ['proxy_set'])