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

Refactor casper-db-utils to make it compatible with casper-node 2.0 #45

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

alsrdn
Copy link
Contributor

@alsrdn alsrdn commented May 30, 2024

This PR refactors casper-db-utils to make it compatible with the changed in casper-node 2.0 Condor.
In fact, casper-db-utils now doesn't depend on the node and performs most of its operations by using the interfaces provided by the casper-storage crate.
Some of the direct LMDB access was removed in favour of using casper-storage interfaces (since technically the LMDB database can be replaced at any time with a different db), however for low level subcommands like check the tool still opens the LMDB database directly and tries to deserialize entries (either through bincode or bytesrepr depending on weather the database in versioned or not).

Fixes: #44

Signed-off-by: Alexandru Sardan <alexandru@casperlabs.io>
@alsrdn alsrdn self-assigned this May 30, 2024
Signed-off-by: Alexandru Sardan <alexandru@casperlabs.io>
Copy link

@rafal-ch rafal-ch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@alsrdn alsrdn merged commit f17e674 into casper-network:feat-track-condor Jun 14, 2024
2 checks passed
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.

2 participants