-
Notifications
You must be signed in to change notification settings - Fork 120
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
suggestion for introduce getblocktemplate-rpcs
feature
#5418
Conversation
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.
I think this looks good.
I am concerned on how easy it will be to pass the rest of the fields we are going to need like state or mempool. Do you think it will be better to do that now ?
I thought it might be difficult to add the mempool but then I tried adding everything except the |
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.
Yea, this is what i wanted initially. Thanks for making it happen. I think we should use it instead of what we have.
* introduce `getblocktemplate-rpcs` feature * reorder imports * highlight the problem * add docs * add additional empty state test * add snapshot test * remove getblocktemplate trait * use `cfg-if` * leave server as it was * add a missing space to the docs * fix typo in test Co-authored-by: Arya <aryasolhi@gmail.com> * suggestion for introduce `getblocktemplate-rpcs` feature (#5418) * adds minimal new object for the get block template methods * updated TODO comment Co-authored-by: Arya <aryasolhi@gmail.com>
Motivation
This is a suggestion (or potential follow-up) for PR #5357 - we could add a new RPC trait with just the field that's currently being used and easily add all of the rest of the fields as they become necessary.
Review
@oxarbitrage can review & merge or close this PR.