mirror of
https://github.com/logos-co/roadmap.git
synced 2025-01-23 22:49:21 +00:00
Update Carnot-Specs
This commit is contained in:
parent
6a2deaecb9
commit
8bea2b4ab5
@ -47,6 +47,7 @@ Utilities:
|
||||
extends(block, ancestor): returns true if block is descendant of the ancestor in the chain.
|
||||
download(view): Download missing block for the view.
|
||||
getMaxViewQC(qcs): returns the qc with the highest view number.
|
||||
memberOfLeafCommittee(): returns true if a node is in the leaf committee of the committee overlay
|
||||
|
||||
|
||||
|
||||
@ -80,7 +81,7 @@ Utilities:
|
||||
download(curView)
|
||||
}
|
||||
}
|
||||
reset()
|
||||
#reset()
|
||||
}
|
||||
|
||||
if aggQC != Null { # Unhappy case
|
||||
@ -91,7 +92,7 @@ Utilities:
|
||||
download(curView)
|
||||
}
|
||||
}
|
||||
reset()
|
||||
#reset()
|
||||
|
||||
}
|
||||
}
|
||||
@ -110,8 +111,19 @@ Utilities:
|
||||
if block.aggQC.highQC.view <= latestCommittedBlock.view {return}
|
||||
}
|
||||
|
||||
if safeBlock(block){
|
||||
update_higQC(block.qc, block.aggQC)
|
||||
if memberOfLeafCommittee(){ send(vote, parentCommittee)
|
||||
reset()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user