-
Notifications
You must be signed in to change notification settings - Fork 113
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(zebra-db): Split low level database code inside zebra-state
#7926
Comments
@arya2 this ticket is related to some ideas you had about making format upgrades generic. The simplest change we could do is to pass a format upgrade function and a format check function to the upgrade task in the split out crate. But how much more work would it be to refactor each upgrade into an upgrade trait, and then pass a list of upgrade trait objects to the upgrade task? I guess we could do that later, it's not required to do the split. |
I don't think it would be too significant, but it would involve a lot of code movement that could be difficult to review alongside this change.
It would be good to do it before the next format upgrade, I opened #7932 |
I was expecting this change to happen in 2-3 PRs:
|
This is #7932
This can be this issue (#7926)
I've split this out into another checklist item in #7728 |
zebra-db
crate out of zebra-state
zebra-state
Is this still relevant even if we don't do any more work on the scanner? |
Motivation
We want to re-using RocksDB for our scanner work, because we already have well-tested low level interfaces to it.
Suggested Changes
We want to move low-level database code into:
zebra-state
-specific read and write methods onZebraDb
)And move anything specific to
zebra-state
outside those modules:zebra-state
Related Work
This was mentioned in #7904 (comment) and earlier comments on that ticket.
The text was updated successfully, but these errors were encountered: