mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-05-17 14:49:31 +00:00
Overlay
This commit is contained in:
parent
245c4cd73d
commit
213b2c079e
@ -481,3 +481,10 @@ def receive_timeout_qc(self, timeout_qc: TimeoutQc):
|
|||||||
|
|
||||||
# Optionally, rebuild the overlay from the timeout QC
|
# Optionally, rebuild the overlay from the timeout QC
|
||||||
# self.rebuild_overlay_from_timeout_qc(timeout_qc)
|
# self.rebuild_overlay_from_timeout_qc(timeout_qc)
|
||||||
|
|
||||||
|
def rebuild_overlay_from_timeout_qc(self, timeout_qc: TimeoutQc):
|
||||||
|
# Ensure the timeout QC view is greater than or equal to the current view
|
||||||
|
assert timeout_qc.view >= self.current_view, "Timeout QC view should be greater than or equal to current view"
|
||||||
|
|
||||||
|
# Rebuild the overlay from scratch
|
||||||
|
self.overlay = Overlay()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user