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

Remove RocksDB and add beacon storage #1078

Merged
merged 4 commits into from
Jan 15, 2024
Merged

Remove RocksDB and add beacon storage #1078

merged 4 commits into from
Jan 15, 2024

Conversation

ogenev
Copy link
Member

@ogenev ogenev commented Jan 3, 2024

Closes #1039.

This branch combines all previous PRs that were approved.

  1. Remove RocksDB #1058
  2. Add Beacon Storage #1069
  3. feat: add beacon storage cache for light client updates #1084
  4. Refactor storage code #1090

To-Do

@ogenev ogenev self-assigned this Jan 8, 2024
@ogenev ogenev force-pushed the remove-rocksdb branch 3 times, most recently from 4a21a56 to 695dd61 Compare January 12, 2024 15:18
@ogenev ogenev changed the title [WIP] Remove RocksDB and add beacon storage Remove RocksDB and add beacon storage Jan 12, 2024
@ogenev ogenev marked this pull request as ready for review January 12, 2024 15:59
Copy link
Collaborator

@njgheorghita njgheorghita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

* refactor: remove RocksDB

* refactor: remove `purge_db`d

* fix: address remove RocksDB PR comments

* feat(db): add "network" column to content table
* feat: add beacon storage

* feat: build Light client update range from database

* feat: lookup LightClientUpdatesByRange content key
* refactor: rename `PortalStorage` to `HistoryStorage`

* refactor: create `trin-storage` workspace crate

* refactor: trin-history storage

* refactor: trin-beacon storage

* refactor: trin-state storage

* refactor: move storage tests

* fix: remove unused crates from portalnet

* fix: address PR comments
@ogenev ogenev merged commit da28918 into master Jan 15, 2024
11 checks passed
@ogenev ogenev deleted the remove-rocksdb branch January 15, 2024 08:08
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.

Refactor portal storage to allow custom storage implementations per network
2 participants