Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rpc): gRPC reflection service support #5583

Merged

Conversation

tomatoishealthy
Copy link
Contributor

close #5391

Copy link
Contributor

@halibobo1205 halibobo1205 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@317787106
Copy link
Contributor

@tomatoishealthy What does this service do?

@@ -124,6 +125,10 @@ public void start() {
// add lite fullnode query interceptor
serverBuilder.intercept(liteFnQueryGrpcInterceptor);

if (parameter.isRpcReflectionServiceEnable()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the parameter rpcReflectionServiceEnable control all the RpcApiServices? It seems to be not flexible to use only one parameter to control all .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gRPC reflection is a tiny feature for a better UX, providing individual parameters for each service is a bit redundant

@tomatoishealthy
Copy link
Contributor Author

@tomatoishealthy What does this service do?

As the issue claimed, provide a better UX for gRPC APIs

@halibobo1205 halibobo1205 merged commit 2d64668 into tronprotocol:develop Nov 23, 2023
6 checks passed
@halibobo1205 halibobo1205 added this to the GreatVoyage-v4.7.4 milestone Nov 24, 2023
@halibobo1205 halibobo1205 added the topic: gRPC/HTTP api rpc/http related issue label Nov 24, 2023
@@ -284,6 +284,9 @@ node {
# "getaccount",
# "getnowblock2"
# ]

# The switch of the reflection service, effective for all gRPC services
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config path "reflectionService" not match with the Args.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "not match with the Args", more details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: gRPC/HTTP api rpc/http related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expected to support gRPCurl tool for grpc interface invocation easily
5 participants