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:
@@ -801,6 +801,7 @@ class Interface(Logger):
|
|||||||
raise GracefulDisconnect('server chain conflicts with checkpoints or genesis')
|
raise GracefulDisconnect('server chain conflicts with checkpoints or genesis')
|
||||||
last, height = await self.step(height)
|
last, height = await self.step(height)
|
||||||
continue
|
continue
|
||||||
|
util.trigger_callback('blockchain_updated')
|
||||||
util.trigger_callback('network_updated')
|
util.trigger_callback('network_updated')
|
||||||
height = (height // 2016 * 2016) + num_headers
|
height = (height // 2016 * 2016) + num_headers
|
||||||
assert height <= next_height+1, (height, self.tip)
|
assert height <= next_height+1, (height, self.tip)
|
||||||
|
|||||||
Reference in New Issue
Block a user