diff --git a/torba/baseaccount.py b/torba/baseaccount.py index 7551c39c8..86e6d3cef 100644 --- a/torba/baseaccount.py +++ b/torba/baseaccount.py @@ -355,7 +355,7 @@ class BaseAccount: def get_utxo_count(self, **constraints): return self.ledger.db.get_utxo_count(account=self, **constraints) - def get_transactions(self, **constraints) -> List['basetransaction.BaseTransaction']: + def get_transactions(self, **constraints): return self.ledger.db.get_transactions(account=self, **constraints) def get_transaction_count(self, **constraints): diff --git a/torba/basenetwork.py b/torba/basenetwork.py index f52d17cd9..f021dcb0d 100644 --- a/torba/basenetwork.py +++ b/torba/basenetwork.py @@ -50,12 +50,12 @@ class BaseNetwork: async def start(self): self.running = True for server in cycle(self.config['default_servers']): - connection_string = 'tcp:{}:{}'.format(*server) + connection_string = '{}:{}'.format(*server) self.client = ClientSession(*server, network=self) try: await self.client.create_connection() await self.ensure_server_version() - log.info("Successfully connected to SPV wallet server: %s", ) + log.info("Successfully connected to SPV wallet server: %s", connection_string) self._on_connected_controller.add(True) await self.client.on_disconnected.first except Exception: # pylint: disable=broad-except