MystenLabs / mysticeti

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

[refactor] Add BlockStore into CommitObserver and Linearizer #47

Closed andll closed 10 months ago

andll commented 10 months ago

Right now we pass BlockStore as an argument every call to the CommitObserver and Linearizer. This was an artefact of very early days when BlockStore was not cloneable. Since it can be cloned now, it is more natural to just keep it in the CommitObserver and Linearizer instance instead of passing it throught the call chain.

It will also come useful later when we need to use BlockHandler during replay