-
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
change(rpc): Modify getblocksubsidy
for NU6
#8742
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.
Some open questions
...rpc/src/methods/tests/snapshot/snapshots/get_block_subsidy_future_nu6_height@testnet_10.snap
Outdated
Show resolved
Hide resolved
...-rpc/src/methods/tests/snapshot/snapshots/get_block_subsidy_excessive_height@testnet_10.snap
Outdated
Show resolved
Hide resolved
For the test failures i think the best will be try to merge zcash/librustzcash#1454 and then upgrade Another option is to point Last, we could add flags to our tests temporally to enable/disable. |
...-rpc/src/methods/tests/snapshot/snapshots/get_block_subsidy_excessive_height@testnet_10.snap
Outdated
Show resolved
Hide resolved
...rpc/src/methods/tests/snapshot/snapshots/get_block_subsidy_future_nu6_height@testnet_10.snap
Outdated
Show resolved
Hide resolved
We should be able to do this now |
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 good, the only blocker to merging this into main seems to be either removing the Testnet activation height or waiting for it to be specified. I opened a suggestion PR (#8766) that removes it.
* refactors get_block_subsidy RPC method * replaces a `Default` impl with derived impls * removes NU6 testnet activation height * updates snapshot test to use a configured Testnet for the post-NU6 getblocksubsidy output * fixes snapshot test * fixes snapshot * Add a snapshot of getblockchaininfo with a future nu6 height
Motivation
We need to make changes to
getblocksubsidy
to support lockbox streams and additional total fields.Outputs of this rpc methods should be the same as implemented in zcash/zcash#6912
Close #8702
Solution
Made modifications that were discussed in the ticket and in the zcash PR, this is a draft as there are still open questions.
Also blocked in having testnet activation height.
Tests
Snapshot tests.
Follow-up Work
PR Author's Checklist
PR Reviewer's Checklist