electrum

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

commit 2e4cfd07445bc3f38090fdb3cd52612a55470469
parent 61aebd0f2dbf83b8e0f6c043036f8f7301b4a158
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  6 Dec 2019 20:17:52 +0100

fix race in NetworkJobOnDefaultServer constructors

Diffstat:
Melectrum/lnverifier.py | 2+-
Melectrum/synchronizer.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/lnverifier.py b/electrum/lnverifier.py @@ -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() diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py @@ -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()