-
Notifications
You must be signed in to change notification settings - Fork 81
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
rpc: unify RPC handlers and metrics #753
Conversation
Codecov Report
@@ Coverage Diff @@
## master #753 +/- ##
=========================================
- Coverage 66.96% 66.76% -0.2%
=========================================
Files 141 141
Lines 13045 12961 -84
=========================================
- Hits 8735 8653 -82
+ Misses 3900 3898 -2
Partials 410 410
Continue to review full report at Codecov.
|
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.
IMO that's the last one for #128 and it's good.
Move getbestblockhash, getblockcount, getconnectioncount RPC.
Move all of them to a map. This can make it easier to add/remove RPC based on plugins and makes code less verbose.
This will make it easier to enable/disable RPC when needed (e.g.
getnep5*
) and is easier to read.This is a draft for a discussion.