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

Store state trie in SQLite #1527

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Store state trie in SQLite #1527

merged 1 commit into from
Oct 14, 2024

Conversation

JamesHinshelwood
Copy link
Contributor

This means that writes of blocks and writes to state can be kept in sync, because the write barriers that SQLite provides will apply to both forms of data. This should eliminate inconsistencies between the two data stores.

Note that I also renamed the SQL database from blockdata.db to db.sqlite3.

shawn-zil
shawn-zil previously approved these changes Oct 7, 2024
shawn-zil
shawn-zil previously approved these changes Oct 9, 2024
@86667
Copy link
Contributor

86667 commented Oct 9, 2024

Does this mean that a node running with this commit will have to start from genesis/checkpoint and rebuild its state?

@JamesHinshelwood
Copy link
Contributor Author

@86667 Correct - The next release will be a breaking release anyway (https://zilliqa-team.slack.com/archives/C04D147S9QX/p1727354776586759)

This means that writes of blocks and writes to state can be kept
in sync, because the write barriers that SQLite provides will
apply to both forms of data. This should eliminate
inconsistencies between the two data stores.

Note that I also renamed the SQL database from `blockdata.db` to
`db.sqlite3`.
@JamesHinshelwood JamesHinshelwood added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit 97bfc85 Oct 14, 2024
5 checks passed
@JamesHinshelwood JamesHinshelwood deleted the everything-in-sql branch October 14, 2024 10:09
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.

3 participants