Skip to content
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

[State] Support state sync and provide RPC to sync state #2614

Merged
merged 8 commits into from
Sep 13, 2024
Merged

Conversation

baichuan3
Copy link
Collaborator

@baichuan3 baichuan3 commented Sep 11, 2024

Summary

  1. Support state sync and provide RPC to sync state
  2. Revert indexer based on state change set when rollback tx
  3. Replace tx and event indexer field sender from RoochAddress to AccountAddress, for reduce sender store size in SQLite by using short_str_lossless
  4. Refactor revert tx and rollback tx tool to reuse code

TODO
RocksDB uses compaction to remove expired keys, setting TTL directly in RocksDB may not be a good choice.
and it may also have a performance impact.
Cleaning up state change set data regularly may be an option

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 10:19am
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 10:19am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2024 10:19am

Copy link

github-actions bot commented Sep 11, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[State] Support state sync and provide RPC to sync state
3 participants