mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-11 01:23:13 +00:00
timeout
This commit is contained in:
parent
2415b0064b
commit
18804d0532
@ -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().
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user