URI: 
       tfix: broadcast_transaction from non network thread - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8df569962d29111206f56bcaa48f0802b9363269
   DIR parent 180eb6d1016f075540500f2db946209612125f33
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Mon, 24 Sep 2018 11:44:28 +0200
       
       fix: broadcast_transaction from non network thread
       
       Diffstat:
         M electrum/lnbase.py                  |       2 +-
         M electrum/lnworker.py                |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnbase.py b/electrum/lnbase.py
       t@@ -463,7 +463,7 @@ class Peer(PrintError):
                while True:
                    self.ping_if_required()
                    msg = await self.read_message()
       -            await self.process_message(msg)
       +            self.process_message(msg)
        
            def close_and_cleanup(self):
                try:
   DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
       t@@ -235,7 +235,7 @@ class LNWorker(PrintError):
                none_idx = tx._inputs[0]["signatures"].index(None)
                tx.add_signature_to_txin(0, none_idx, bh2u(remote_sig))
                assert tx.is_complete()
       -        return self.network.broadcast_transaction(tx)
       +        return self.network.broadcast_transaction_from_non_network_thread(tx)
        
            def _get_next_peers_to_try(self) -> Sequence[LNPeerAddr]:
                now = time.time()