forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADR-101: implement gRPC
PruningService
(cometbft#1154)
* proto: Add proto files for the PruningService * proto: generate *.pb.go files for PruningService * config: add grpc.privileged incl. pruning_service As described in ADR-101, add the node configuration section named grpc.privileged to control the privileged server socket, containing a pruning_service section for the pruning service. * config: add pruning service config to the template * grpc: package for privileged server The privileged server optionally instantiated with the pruning service. * node: add setup for the privileged gRPC server * rpc: enable PruningService in test helper config Also stop the makeAddrs function from growing grotesquely repetitive and replace it with makeAddr returning a single, supposedly random, local address string. * grpc: privileged client with PruningService Add client-side support for the privileged connection that features an optionally enabled pruning service. * e2e tests for PruningService * config: refer to [storage.pruning] section in config.toml Replace potentially confusing text in the comments on the pruning service configuration. Co-authored-by: Thane Thomson <connect@thanethomson.com> * grpc: tracing with error logs for PruningService --------- Co-authored-by: Andy Nogueira <me@andynogueira.dev> Co-authored-by: Thane Thomson <connect@thanethomson.com>
- Loading branch information
1 parent
04dfaf5
commit 69843be
Showing
17 changed files
with
2,241 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- `[proto]` Add definitions and generated code for [ADR-101] `PruningService` | ||
in the `tendermint.services.pruning.v1` proto package | ||
([\#1097](https://github.com/cometbft/cometbft/issues/1097)). | ||
- `[rpc/grpc]` Add privileged gRPC server and client facilities, in | ||
`server/privileged` and `client/privileged` packages respectively, to | ||
enable a separate API server within the node which serves trusted clients | ||
without authentication and should never be exposed to public internet | ||
([\#1097](https://github.com/cometbft/cometbft/issues/1097)). | ||
- `[rpc/grpc]` Add a pruning service adding on the privileged gRPC | ||
server API to give an [ADR-101] data companion control over block data | ||
retained by the node. The `WithPruningService` option method in | ||
`server/privileged` is provided to configure the pruning service | ||
([\#1097](https://github.com/cometbft/cometbft/issues/1097)). | ||
- `[rpc/grpc]` Add `PruningServiceClient` interface | ||
for the gRPC client in `client/privileged` along with a configuration option | ||
to enable it | ||
([\#1097](https://github.com/cometbft/cometbft/issues/1097)). | ||
- `[config]` Add `[grpc.privileged]` section to configure the privileged | ||
gRPC server for the node, and `[grpc.privileged.pruning_service]` section | ||
to control the pruning service | ||
([\#1097](https://github.com/cometbft/cometbft/issues/1097)). | ||
|
||
[ADR-101]: https://github.com/cometbft/cometbft/pull/82 |
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
Oops, something went wrong.