mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-29 18:33:12 +00:00
propose_block
This commit is contained in:
parent
4b42bf21a1
commit
19d80200dc
@ -409,7 +409,7 @@ class Carnot:
|
||||
def propose_block(self, view: View, quorum: Quorum) -> Event:
|
||||
# Check if the node is a leader and if the quorum size is sufficient
|
||||
assert self.overlay.is_leader(self.id), "Only leaders can propose blocks"
|
||||
assert len(quorum) >= self.overlay.leader_super_majority_threshold(self.id), "Insufficient quorum size"
|
||||
assert len(quorum) >= self.overlay.leader_super_majority_threshold(self.id), "Sufficient quorum size is allowed"
|
||||
|
||||
# Initialize QC to None
|
||||
qc = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user