-
Notifications
You must be signed in to change notification settings - Fork 715
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
Optimize deferred credits fetch #4622
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.
LGTM (Left a small comment above)
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.
TODO: GRPC API
Actually let's assume GRPC is OK for now. We'll respond accordingly if there is any issue. Also, given the fact that we will reduce the whole deferred credits file, it should not be an issue. |
* Update cycle db serialization * Revert to previous cycle handling in get_cycle_history_cycles (assumes keys are sorted in DB) * Update ser / deser for cycles and deferred credits slots * Add comment for AsyncPool behaviour * Added comments * Fmt * Update test comment for pos_cache_recompute * Address review comment * Updated deferred_credits test to verify the fix * Use take_while instead of break * Update VERSION * Optimize deferred credits fetch (#4622) * Optimize deferred credits fetch * Fix get_addresses test compilation * Remove test print statements * Use config for deferred credits delta * Move to Settings * minor fixes * minor fixes 2 * double comment --------- Co-authored-by: sydhds <sydhds@gmail.com> Co-authored-by: Damir Vodenicarevic <damipator@gmail.com> * Add warning for get_deferred_credits_range function and document addr_filter * Review comment * Bumped deferred_credits_delta to 3 months by default * Update initial ledger and README * Update genesis files + commit_id --------- Co-authored-by: Sydhds <sylvain.delhomme@gmail.com> Co-authored-by: sydhds <sydhds@gmail.com> Co-authored-by: Damir Vodenicarevic <damipator@gmail.com>
resync_check
flag