-
Notifications
You must be signed in to change notification settings - Fork 108
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
add(scan): Test the RegisterKeys
scan service call
#8281
Conversation
RegisterKeys
scan service callRegisterKeys
scan service call
a9ff9a7
to
13c78f0
Compare
a100faa
to
69d1951
Compare
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 for also updating the CHECK_INTERVAL
.
I'm not sure about adding the strum
crate, I think we should add our own code where needed to avoid reviewing the added dependency, but I like the idea of iterating through Network
variants in tests. We may want to cleanup other tests that check both networks to iterator through the default variants before adding fields to the Testnet
variant so that they won't need to be updated later.
Co-authored-by: Arya <[email protected]>
…#8281) * Impl generating continuous deserialized blocks * Make `sapling_efvk_hrp` `pub` * Don't wait for Sapling activation height in tests * Set the sleep interval for scan service to 10 secs * Simplify `sapling_key_to_scan_block_keys` * Enable mocking Sapling scanning keys for Testnet * Test the `RegisterKeys` scan service call * Enable `shielded-scan` for `zebra-chain` * Use an ephemeral database so results don't persist * Don't generate blocks when mocking the state * Improve error messages * Simplify seeding mocked Sapling viewing keys * Apply suggestions from code review Co-authored-by: Arya <[email protected]> * Use a manual iterator over `Network` --------- Co-authored-by: Arya <[email protected]>
Motivation
We are missing tests for the
RegisterKeys
service call.PR Author Checklist
Check before marking the PR as ready for review:
Solution
This PR adds tests for
RegisterKeys
, and contains a bunch of additional clean-ups:Reviewer Checklist
Check before approving the PR:
PR blockers can be dealt with in new tickets or PRs.
And check the PR Author checklist is complete.