-
Notifications
You must be signed in to change notification settings - Fork 106
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(scan): Create a scanner storage database, but don't use it yet #8031
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.
Looking great but i think the failing test need further investigation.
thread 'tests::scanning_fake_blocks_store_key_and_results' panicked at zebra-state/src/service/finalized_state/zebra_db/block.rs:65:66:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test tests::scanning_fake_blocks_store_key_and_results ... FAILED
It is clear that the test do not have a state but i don't see why and where tip()
needs to be called.
We can just ignore the test to merge and deal with it later but i don't think that will be a good idea.
9afc789
to
4e2192d
Compare
f73249f
to
d57efb7
Compare
It's being called from a format change, which should have been disabled in PR #8002, but I missed it:
|
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 great, thanks.
The base branch was changed.
74a293d
to
2311a8a
Compare
Motivation
This does the database creation and column family parts of #8019, but doesn't actually use the database.
There's still the actual data part of that ticket left for the next PR, and testing.
PR Author Checklist
Check before marking the PR as ready for review:
If a checkbox isn't relevant to the PR, mark it as done.
Complex Code or Requirements
This seems to just work as expected.
Solution
Related changes:
new()
methodzebra_scan::init()
methodRelated fixes:
Testing
The existing tests found one bug already, we'll add more in the next few PRs.
Review
This seemed like enough code to review for now. It's not urgent but it is on the critical path to completing the scanner MVP.
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.
Follow Up Work
The rest of #8019: