mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-02-12 09:13:09 +00:00
update high_qc
This commit is contained in:
parent
0ce5f2dc40
commit
a9dae057ed
@ -271,12 +271,10 @@ class Carnot:
|
||||
case (None, new_qc) if isinstance(new_qc, AggregateQc):
|
||||
# Set local high QC to the high QC from the new AggregateQc
|
||||
self.local_high_qc = new_qc.high_qc()
|
||||
case (old_qc, new_qc) if isinstance(old_qc, StandardQc) and isinstance(new_qc,
|
||||
StandardQc) and new_qc.view > old_qc.view:
|
||||
case (old_qc, new_qc) if isinstance(new_qc, StandardQc) and new_qc.view > old_qc.view:
|
||||
# Update local high QC if the new StandardQc has a higher view
|
||||
self.local_high_qc = new_qc
|
||||
case (old_qc, new_qc) if isinstance(old_qc, AggregateQc) and isinstance(new_qc,
|
||||
AggregateQc) and new_qc.high_qc().view != old_qc.view:
|
||||
case (old_qc, new_qc) if isinstance(new_qc, AggregateQc) and new_qc.high_qc().view != old_qc.view and new_qc.view > old_qc.view:
|
||||
# Update local high QC if the view of the high QC in the new AggregateQc is different
|
||||
self.local_high_qc = new_qc.high_qc()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user