narwhal
narwhal copied to clipboard
feat: let the Primary's core use the Consensus recovery
This is a superset of #814:
- this front-loads the recovery of the consensus, creating its state before actually spawning the task,
- then modifies the recovery of the primary to use the result of consensus recovery,
Note that we do not provide a recovery to the primary in case we are running with an external consensus. In this case, we simply follow the logic outlined in #814.
Opening for review for comments, this requires more testing.
Part of #776
The simplest way to bring this to a close (w/o spurious code changes) is that this will need to be refactored on top of (and is blocked by) MystenLabs/narwhal#825.
Closing the PR as newer work has been done under Narwhal's new home https://github.com/MystenLabs/sui