update timeout_qc

This commit is contained in:
mjalalzai 2023-09-27 21:01:48 -07:00
parent b0ab18cf5c
commit d0027ba63a

View File

@ -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