MystenLabs / mysticeti

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

Support arbitrary large authority set #32

Closed lxfind closed 1 year ago

lxfind commented 1 year ago

This PR changes the authority set from u128 to a Vec. By default it's set to support 128 validators. If a larger index is set, it can automatically grow. While we could also support forcing the constructor to take the size of the committee (since it doesn't change for a given instance), it requires way too many refactoring which I am not sure if it's worth it.

lxfind commented 1 year ago

Updated using array instead of vec