-
Notifications
You must be signed in to change notification settings - Fork 111
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): introduce getblocktemplate-rpcs
feature
#5357
Conversation
New features are blocked until we tag the first release candidate. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5357 +/- ##
==========================================
- Coverage 79.19% 79.06% -0.14%
==========================================
Files 308 308
Lines 39560 39289 -271
==========================================
- Hits 31329 31062 -267
+ Misses 8231 8227 -4 |
Why the optional tag was added if as far as i know it was decided we want to have the mining calls in a feature ? I think the optional tag discourage developers to keep working on a pull request when used unilaterally as it has been done here (and pretty much everywhere else). |
I added the optional tag because this work isn't scheduled for this sprint, and we have the release candidate and getblocktemplate analysis work as a higher priority. I added the "do not merge" tag because we can't merge new features until we've tagged the release candidate. Sorry I didn't explain that to start with, I've been busy trying to fix CI and get the release candidate working. |
When the Line 68 in ee0edef
I'm guessing you did this already, but we also need to compile |
This might need a Line 46 in ee0edef
|
The |
We tagged the release candidate, so new features can merge now. Can you add a priority label to this ticket? |
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.
Looks good, looking forward to getting it working!
This new RPC needs a snapshot test and a manual Can you post the results of |
I highligthed the issue a bit more in b1a6918 and added comments about it at #5357 (review) |
Diffs are different because zcashd and zebrad are at different heights locally.
|
Output of zebra when quering the
The same call but in a build with
|
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.
This looks great, thank you!
It may be worth initializing a second object with the fields we need in order to separate the new code into a second trait definition at some point, but I think we can move forward with this for now.
I suggested a fix to a small typo, and we should promptly follow-up with #5405 because there are sometimes issues in CI that we don't see locally.
Co-authored-by: Arya <[email protected]>
Thanks @arya2 , i added the suggested typo fix. Can you re approve ? Thanks. |
* adds minimal new object for the get block template methods * updated TODO comment
Motivation
We want to support mining rpc calls but as an isolated rust feature. Can close #5305 with some more work. It also implement partially
get_block_count
(#5303) so we can have something to test with.Also closes #5303.
Solution
PR attempts to do the supertrait suggested implementation. It looks good and we can make tests but something is missing. When calling the rpc with curl:
Review
I will like @teor2345 to take a look
Reviewer Checklist
Follow Up Work