This commit is contained in:
mjalalzai 2023-03-21 00:00:53 -07:00
parent 2415b0064b
commit 18804d0532
1 changed files with 11 additions and 1 deletions

View File

@ -133,6 +133,7 @@ Participants in the protocol are expected to mainting the following data in addi
CURRENT_VIEW: View
LOCAL_HIGH_QC: Qc
LATEST_COMMITTED_VIEW: View
HIGH_COMMITTED_QC:Qc # This is not needed for consensus but actually helps a lot for any node fallen behind to catchup.
COLLECTION: Q?
```
@ -364,7 +365,16 @@ Func receive(newView) {
### Timeout
```python
def timeout():
raise NotImplementedError
if (member_of_internal_com() AND not member_of_root()) OR member_of_leaf:
let timeoutMsg = create_newView(CURRENT_VIEW,HIGH_QC,HIGH_COMMITTED_QC, TIMEOUT_QC)
send(timeoutMsg, parent_committee())
if member_of_root():
let timeoutMsg = create_newView(CURRENT_VIEW,HIGH_QC,HIGH_COMMITTED_QC, TIMEOUT_QC)
send(timeoutMsg,root_committee()) # Need to be discussed. It can only be sent to the next leader but since the RB needs agreement to generate the seed for the leader+overlay, therefore newView is sent to the root_committee().
```