-
Notifications
You must be signed in to change notification settings - Fork 1.7k
refactor(api): remove dead WalletExtension gRPC service and config #6975
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
base: release_v4.8.3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,6 @@ public class NodeConfig { | |
|
|
||
| // ---- Flat scalar fields (auto-bound by ConfigBeanFactory) ---- | ||
| private String trustNode = ""; | ||
| private boolean walletExtensionApi = false; | ||
| private int syncFetchBatchNum = 2000; | ||
| private int maxPendingBlockSize = 500; | ||
| private int validateSignThreadNum = 0; // 0 = auto (availableProcessors) | ||
|
|
@@ -327,6 +326,12 @@ public static NodeConfig fromConfig(Config config) { | |
| nc.maxConnectionsWithSameIp = section.getInt("maxActiveNodesWithSameIp"); | ||
| } | ||
|
|
||
| // node.walletExtensionApi (removed): the WalletExtension gRPC service no longer exists | ||
| if (section.hasPath("walletExtensionApi")) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NIT] First node.* key removed without a deprecation period — please record the exception in release notes
Suggestion: list the removal explicitly in the release notes ("Removed: WalletExtension gRPC service (4 RPCs) + node.walletExtensionApi config key") so the skipped deprecation cycle is visible to operators and future reviewers. |
||
| logger.warn("Configuring [node.walletExtensionApi] has been removed and is ignored. " | ||
| + "The WalletExtension gRPC service no longer exists."); | ||
| } | ||
|
|
||
| // Legacy key fallback: node.allowShieldedTransactionApi wins fullNodeAllowShieldedTransaction | ||
| if (section.hasPath("allowShieldedTransactionApi")) { | ||
| nc.allowShieldedTransactionApi = | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[NIT] PR description reflection claim doesn't match the code
(Cross-cutting note anchored at the removal warning as the most representative added line.)
The PR description says the only observable effect of enabling
node.walletExtensionApiwas that "gRPC reflection advertises a service that always fails", but this repo does not registerProtoReflectionService(no grpc-reflection dependency, no registration inRpcApiService). The actual observable effect is narrower: the solidity node registers a service whose every method returns UNIMPLEMENTED.Suggestion: correct that sentence in the PR description, since it may be quoted in future decisions.