electrum

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

commit 7cc628dc7909c3ff44a5e5dfc0de60bc8e438ce1
parent 3be5b4b00fadb341742b4fcb5e30fdb4d35decbd
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 24 Sep 2018 17:37:09 +0200

synchronizer: fix adding duplicate addresses race

Diffstat:
Melectrum/synchronizer.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py @@ -73,6 +73,7 @@ class Synchronizer(PrintError): asyncio.run_coroutine_threadsafe(self._add(addr), self.asyncio_loop) async def _add(self, addr): + if addr in self.requested_addrs: return self.requested_addrs.add(addr) await self.add_queue.put(addr)