1
0

fix prev: that's not how you use the context manager...

This commit is contained in:
SomberNight
2018-09-11 12:25:57 +02:00
parent 557334aa36
commit 1728dff576

View File

@@ -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):