def _add_peers_from_config(self):
    peer_list = self.config.get('lightning_peers', [])
    for (host, port, pubkey) in peer_list:
        asyncio.run_coroutine_threadsafe(self._add_peer(host, int(port), bfh(pubkey)), self.network.asyncio_loop)
def _add_peers_from_config(self):
    peer_list = self.config.get('lightning_peers', [])
    for (host, port, pubkey) in peer_list:
        asyncio.run_coroutine_threadsafe(self._add_peer(host, int(port), bfh(pubkey)), self.network.asyncio_loop)