-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpcserver: Correct known wallet method handling.
This corrects the code to return the expected RPC error in the case the requested method is one known to be a wallet method or known to be intentionally unimplemented. Since dcrjson was updated to work with types instead of strings, parsing a method that is not registered now fails, so the special error returns are now handled there as opposed to the old approach of adding handlers for certain method names which just returned the appropriate error. This allows the standardCmdResult method to be simplified since it no longer needs to include the logic for dealing with special handlers and therefore it is updated accordingly. Finally, the special handlers are removed since they are no longer needed.
- Loading branch information
Showing
1 changed file
with
17 additions
and
35 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