-
Notifications
You must be signed in to change notification settings - Fork 62
feat: no stability window buffer til volatile #947
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: no stability window buffer til volatile #947
Conversation
ae701e7
to
e549b96
Compare
Standard DiffPostThis PR would generate the following Preview |
restructure observable DataSource utils for easier re-use as preparation for new StabilityWindowBuffer interface that will require it's own connection during Bootstrap
hoist from wallet TipTracker tests
It's implemented by splitting StabilityWindowBuffer into 2 pieces: - Tip observable, which is used to determine local tip - StabilityWindowBuffer is now simplified to just 'getBlock' method BREAKING CHANGE: simplify StabilityWindowBuffer interface to just 'getBlock' - Bootstrap.fromCardanoNode now requires Tip observable parameter
e549b96
to
b2244ea
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.
LGTM!
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.
Have you done a performance test @mkazlauskas ? I'm curios to know the gains we're getting here Edit: It's in the description 😬
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.
Awesome work @mkazlauskas 🧙
Context
Projector is inserting block data into the database even when it's far away from the tip and there is no chance of a fork/rollback happening.
LW-6953
Proposed Solution
Projector no longer inserts block data until it reaches
tip-securityParameter
block height. This is implemented by extracting Tip tracking capabilities out of StabilityWindowBuffer interface.Preliminary performance testing of utxo projection on my computer resulted in
Important Changes Introduced
See commit log