electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 73325831b7075f461e106f36099865a3fedadb72
parent 1d667fe9327d17a752084ca9c69091ec71617d33
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 14 Apr 2020 18:28:23 +0200

run lnworker.main_loop directly on the event loop

Diffstat:
Melectrum/lnworker.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -232,11 +232,10 @@ class LNWorker(Logger): assert network self.network = network self.config = network.config - daemon = network.daemon self.channel_db = self.network.channel_db self._last_tried_peer = {} # type: Dict[LNPeerAddr, float] # LNPeerAddr -> unix timestamp self._add_peers_from_config() - asyncio.run_coroutine_threadsafe(daemon.taskgroup.spawn(self.main_loop()), self.network.asyncio_loop) + asyncio.run_coroutine_threadsafe(self.main_loop(), self.network.asyncio_loop) def _add_peers_from_config(self): peer_list = self.config.get('lightning_peers', [])