MystenLabs / mysticeti

Mysticeti: Low-Latency DAG Consensus with Fast Commit Path
Apache License 2.0
55 stars 28 forks source link

Introduce CommitSubDag::height #46

Closed andll closed 1 year ago

andll commented 1 year ago

This PR introduces CommitSubDag::height which is a simple index of the sub dag in the commit sequence.

In addition, this PR adds few doc comments for commit related data structures and traits.

This PR also refactors recovery code by introducing CommitObserverRecoveredState structure, replacing a tuple of arguments passed to the commit observer - this is probably majority of code changes in this PR.