Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[epoch] Do not start Narwhal if epoch mismatch (MystenLabs#7452)
We currently read narwhal committee from the system object during startup. This can be wrong if we are in a crash recovery state: we have executed the last transaction of the epoch (and hence on-chain system state object is already at next epoch), but we haven't reconfigured Sui yet. This could lead to Narwhal and Sui to be at different epoch, which is fatal and could lead to all kinds of issues. A proper fix is likely to put Narwhal committee in the epoch store, just like the Sui committee, but that requires some proper refactoring and will take some time. This PR is a quick fix: we simply don't start Narwhal if they don't match, and we rely on the reconfig process to start it properly.
- Loading branch information