|
|
|
|
@ -139,6 +139,7 @@ class Interface(PrintError):
|
|
|
|
|
self.cert_path = os.path.join(self.config_path, 'certs', self.host) |
|
|
|
|
self.blockchain = None |
|
|
|
|
self.network = network |
|
|
|
|
self._set_proxy(proxy) |
|
|
|
|
|
|
|
|
|
self.tip_header = None |
|
|
|
|
self.tip = 0 |
|
|
|
|
@ -147,6 +148,10 @@ class Interface(PrintError):
|
|
|
|
|
self.fut = asyncio.get_event_loop().create_task(self.run()) |
|
|
|
|
self.group = SilentTaskGroup() |
|
|
|
|
|
|
|
|
|
def diagnostic_name(self): |
|
|
|
|
return self.host |
|
|
|
|
|
|
|
|
|
def _set_proxy(self, proxy: dict): |
|
|
|
|
if proxy: |
|
|
|
|
username, pw = proxy.get('user'), proxy.get('password') |
|
|
|
|
if not username or not pw: |
|
|
|
|
@ -162,9 +167,6 @@ class Interface(PrintError):
|
|
|
|
|
else: |
|
|
|
|
self.proxy = None |
|
|
|
|
|
|
|
|
|
def diagnostic_name(self): |
|
|
|
|
return self.host |
|
|
|
|
|
|
|
|
|
async def is_server_ca_signed(self, sslc): |
|
|
|
|
try: |
|
|
|
|
await self.open_session(sslc, exit_early=True) |
|
|
|
|
|