-
Notifications
You must be signed in to change notification settings - Fork 107
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
feature(rpc): add fixed values to getblocktemplate response #5558
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5558 +/- ##
==========================================
+ Coverage 78.84% 78.87% +0.02%
==========================================
Files 305 305
Lines 38126 38127 +1
==========================================
+ Hits 30061 30071 +10
+ Misses 8065 8056 -9 |
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, looks good!
I have a suggestion in PR #5559, and it will help me to review if we add documentation for the new fields.
zebra-rpc/src/methods/tests/snapshot/snapshots/get_block_template@mainnet_10.snap
Show resolved
Hide resolved
@Mergifyio update |
✅ Branch has been successfully updated |
@Mergifyio update |
✅ Branch has been successfully updated |
* Avoid using lazy_static * Add some missing documentation Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This PR has conflicts with PR #5554, which just merged. So it will need to be rebased or it will need a merge commit. |
The tests will fail because they all get into this code section
where everything is empty. I am unsure if we should update the test and snapshots to be empty or if we should add the fixed values into that code as well. |
That code disappears in my next PR #5580, so you could base this PR on that one, or copy the fixed values into the code that is about to be deleted? |
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, looks good!
Motivation
Close #5452
Solution
Add constants where needed, get constant from other crates, update tests.
Review
Anyone can review.
Reviewer Checklist