From 27f09c1f9f5b3ab1f87c89cfb1d744f6ea28fd55 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 22 May 2024 14:34:37 +0000 Subject: [PATCH] interface: also trigger 'blockchain_updated' during initial sync In fact, semantically it might be more correct to only trigger 'blockchain_updated' and not 'network_updated' here... Anyway, 'blockchain_updated' should be triggered whenever the Blockchain object gets longer (or changes otherwise). In particular, in qml, the NetworkOverview only updates the displayed height on 'blockchain_updated'. --- electrum/interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/interface.py b/electrum/interface.py index d4ec3c7a6..0398d3f9c 100644 --- a/electrum/interface.py +++ b/electrum/interface.py @@ -801,6 +801,7 @@ class Interface(Logger): raise GracefulDisconnect('server chain conflicts with checkpoints or genesis') last, height = await self.step(height) continue + util.trigger_callback('blockchain_updated') util.trigger_callback('network_updated') height = (height // 2016 * 2016) + num_headers assert height <= next_height+1, (height, self.tip)