MystenLabs / mysticeti

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

[fix] stake aware leader election when using multiple leaders #56

Closed akichidis closed 11 months ago

akichidis commented 11 months ago

When using multiple leaders per round we need to ensure that not the same leader is elected. Otherwise that would create an issue (panic) downstream to the lineariser where is checked whether the same leader has been committed and also make us miss the opportunity to actually elect more than one leaders.

To achieve that we need to provide separately the round number from the offset and manage accordingly.