-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move initialization to supervisor (#5187)
## Motivation Part of #5149 merge after #5186 & #5189 This moves the initialization code into the PoST supervisor. The ATX builder should not concern itself with initialization: - A remote PoST service that connects is expected to already be fully initialized - In supervised mode the supervisor takes care of initialization This allows to simplify the ATX builder, which has partially already been done in this PR and will continue in future PRs. ## Changes - Removed dependency on `postSetupManager` from `atxBuilder` - Simplified `atxBuilder` - Initial Proofs are not verified any more (PoST service is trusted) - Information about the PoST is fetched from the PoST service rather than accessed via the `postSetupManager` - Simplified `postSetupManager` - Since meta information is now fetched via the client everything besides `StartSession`, `StopSession` and `Reset` has been removed from the interface - `postSetupManager` isn't used by the gRPC `SmeshingService` any more, instead it's now used by `PostSupervisor` to init a supervised node before starting it For next PR: - change `atxBuilder` from `Start`/`Stop` to `Run` - a post service connecting triggers the builder loop (one per connected service) - simplify `atxBuilder` further and consider merging `nipostBuilder` into it. ## Test Plan - added new tests to PoST supervisor to cover new functionality - updated existing tests ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
- Loading branch information
Showing
26 changed files
with
835 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.