1
0

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'.
This commit is contained in:
SomberNight
2024-05-22 14:34:37 +00:00
parent fb64c5b6c6
commit 36d49f4ad3

View File

@@ -800,6 +800,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)