-
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): add getblockhash rpc method #4967
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4967 +/- ##
==========================================
- Coverage 79.15% 79.14% -0.02%
==========================================
Files 308 308
Lines 39324 39324
==========================================
- Hits 31128 31123 -5
- Misses 8196 8201 +5 |
This is blocked by tagging the release we send to the auditors, because it's part of a new feature. |
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.
Sorry it has taken me a while to review this PR, I've been focused on CI and release candidate work.
Can you rebase this PR on top of the getblocktemplate-rpcs
feature in PR #5357, once that's done?
We tagged the release candidate, so new features can merge now. Can you add a priority label to this ticket, so people know how urgent it is? |
* Always immediately return errors in get_height_from_int() * Explain why calculations can't overflow
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.
The changes in this PR cause memory corruption in the RPC tests on macOS:
process didn't exit successfully:
/Users/runner/work/zebra/zebra/target/debug/deps/zebra_rpc-194938bf1186cc48 --nocapture
(signal: 10, SIGBUS: access to undefined memory)
Since most of these changes are behind a feature, and the new state requests aren't called by the old tests, this could be an existing bug, or bug from PR #5357 that only happens sometimes.
I can't see anything obvious in PR #5357, so here's what it could be:
Maybe adding the getblocktemplate tests to CI (#5405) will help us diagnose the issue? |
Failing in building the |
This PR was not ready when you reviewed, i was still working on it. it seems that error is gone. I will remove it from draft state when it is ready, there is still a known issue i will need to fix. |
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.
Thanks!
We need to get this tested in CI pretty soon. I don't want to block this PR, but we should get ticket #5435 done next.
@Mergifyio update |
✅ Branch has been successfully updated |
Motivation
After the release candidate Zebra will continue the development of more API calls.
getblockhash
is one of tme methods we will implement almost for sure.This is low priority however as it is pretty much done i want to push it to zebra reoo as a PR.
This is a draft because is low priority however in other scenario it should be ready for review.
Close #5268.
Solution
Implement
getblockhash
.Required Tests
zcashd
andzebrad
RPC output using https://github.com/ZcashFoundation/zebra/blob/main/zebra-utils/zcash-rpc-diffReview
Reviewer Checklist
Follow Up Work