-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove datastore, fetch latest block #928
Conversation
volovyks
commented
Nov 7, 2024
•
edited
Loading
edited
- Remove DataStore and all related code
- Add Redis storage manager for persistent in app data (for now only latest processed block)
- Do not pass latest block in Terraform, we often forget to update those values, not a good practice
- Fetch latest block using RPC client and use it or use latest processed block (check the logic for more details)
…/mpc-recovery into serhii/presignature-storage
…overy into serhii/presignature-storage
@kmaus-near reverted changes in mpc recovery |
const APP_DATA_PREFIX: &str = "app_data"; | ||
const APP_DATA_STORAGE_VERSION: &str = "v1"; |
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.
these configs should live in the contract config
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.
We should change them in case of a breaking change in storage. It may be useful for hotfixes, like resetting all triples, but I do not want to add it now.
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. Please wait for @ChaoticTempest 's review since he wrote a lot of the indexer logic.
@ppca I will merge it now, @ChaoticTempest saw it before and is having issues with his laptop. We must test how it affects our stability and speed before the release. |