-
Notifications
You must be signed in to change notification settings - Fork 111
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
6. refactor(state): prepare finalized state for shared read-only access #3810
Conversation
@Mergifyio update |
☑️ Nothing to do
|
Codecov Report
@@ Coverage Diff @@
## split-state-service #3810 +/- ##
=======================================================
- Coverage 78.86% 78.82% -0.04%
=======================================================
Files 293 293
Lines 33560 33603 +43
=======================================================
+ Hits 26466 26487 +21
- Misses 7094 7116 +22 |
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 good, just have a question. Feel free to mark it as solved if there is no issue there.
Fetching the Zcash parameters caused the Windows test to time out. |
And move `populated_state` to the `arbitrary` module.
a8cbc09
to
984e0b1
Compare
2dd2f9b
to
d8a79b6
Compare
Motivation
As part of #3745, we need to be able to clone read-only access to the finalized state.
Designs
The
DiskDb
type provides shared read-write access to the low-level types in the finalized state. (Like individual column family entries.)That's enough for initial performance testing, but later PRs will allow shared access to high-level types. (Like composite types and queries.)
Write access requires a lot of manual low-level code, so it should be obvious in reviews. The high-level type wrapper might also prevent write access, but that's not a priority.
Solution
Review
This is a bit urgent, because it blocks most of the lightwalletd integration tests.
Reviewer Checklist
Follow Up Work
getblock
RPC method. #3745