tfix race in NetworkJobOnDefaultServer constructors - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2e4cfd07445bc3f38090fdb3cd52612a55470469 DIR parent 61aebd0f2dbf83b8e0f6c043036f8f7301b4a158 HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 6 Dec 2019 20:17:52 +0100 fix race in NetworkJobOnDefaultServer constructors Diffstat: M electrum/lnverifier.py | 2 +- M electrum/synchronizer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnverifier.py b/electrum/lnverifier.py t@@ -53,12 +53,12 @@ class LNChannelVerifier(NetworkJobOnDefaultServer): # spread it over multiple servers. def __init__(self, network: 'Network', channel_db: 'ChannelDB'): - NetworkJobOnDefaultServer.__init__(self, network) self.channel_db = channel_db self.lock = threading.Lock() self.unverified_channel_info = {} # type: Dict[ShortChannelID, dict] # scid -> msg_payload # channel announcements that seem to be invalid: self.blacklist = set() # type: Set[ShortChannelID] + NetworkJobOnDefaultServer.__init__(self, network) def _reset(self): super()._reset() DIR diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py t@@ -60,8 +60,8 @@ class SynchronizerBase(NetworkJobOnDefaultServer): """ def __init__(self, network: 'Network'): self.asyncio_loop = network.asyncio_loop - NetworkJobOnDefaultServer.__init__(self, network) self._reset_request_counters() + NetworkJobOnDefaultServer.__init__(self, network) def _reset(self): super()._reset()