From 1728dff576ce5e435cfeb9695211c05c59939e6f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 11 Sep 2018 12:25:57 +0200 Subject: [PATCH] fix prev: that's not how you use the context manager... --- electrum/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/interface.py b/electrum/interface.py index 1b7e32a3d..64e773842 100644 --- a/electrum/interface.py +++ b/electrum/interface.py @@ -332,7 +332,7 @@ class Interface(PrintError): while True: self.network.notify('updated') item = await replies.get() - async with self.network.bhi_lock and self.tip_lock: + async with self.network.bhi_lock, self.tip_lock: if self.blockchain.height() < item['block_height']-1: _, height = await self.sync_until(height, None) if self.blockchain.height() >= height and self.blockchain.check_header(item):