mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-27 09:23:18 +00:00
update timeout_qc
This commit is contained in:
parent
b0ab18cf5c
commit
d0027ba63a
@ -281,3 +281,8 @@ class Carnot:
|
||||
# If my view is not updated, I update it when I see a QC for that view
|
||||
if qc.view >= self.current_view:
|
||||
self.current_view = qc.view + 1
|
||||
|
||||
def update_timeout_qc(self, timeout_qc: TimeoutQc):
|
||||
if not self.last_view_timeout_qc or timeout_qc.view > self.last_view_timeout_qc.view:
|
||||
self.last_view_timeout_qc = timeout_qc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user