-
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.
## Motivation Part of #5042 This PR adds the GRPC API for the PoST service and adds tests verifying it works correctly. ## Changes - PoST service is downloaded with tests and builds, as well as included in the `Dockerfile` - `PostSetupManager` now uses `zap` directly instead of the `go-spacemesh/log` wrapper - `grpcserver.PostService` uses the PoST service API is added to gRPCs `PrivateListener` endpoint - temporary, will be changed to public + authentication in the future - Any amount of PoST services can connect to the API but only the first calling `Register` will be able to successfully create a stream - in the future this will be extended to allow any number of PoST services to connect - a successful `Register` will create a `PostClient` and notify all services that are `postConnectionListener` about the service connecting (and disconnecting) - TODO: bundled PoST service is started when the node starts ## Test Plan - new tests have been added for gRPC API ## 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
27 changed files
with
995 additions
and
64 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,10 +52,10 @@ install: | |
go install honnef.co/go/tools/cmd/[email protected] | ||
.PHONY: install | ||
|
||
build: go-spacemesh get-profiler | ||
build: go-spacemesh get-profiler get-postrs-service | ||
.PHONY: build | ||
|
||
get-libs: get-postrs-lib | ||
get-libs: get-postrs-lib get-postrs-service | ||
.PHONY: get-libs | ||
|
||
get-profiler: get-postrs-profiler | ||
|
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.