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

Create a fsck-like database validator #577

Open
rkuris opened this issue Mar 6, 2024 · 1 comment
Open

Create a fsck-like database validator #577

rkuris opened this issue Mar 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rkuris
Copy link
Collaborator

rkuris commented Mar 6, 2024

We need some tooling to check a database consistency. The tool should:

  • Walk through the entire merkle trie and make sure there are no circular references
  • Walk through the free space and make sure it doesn't overlap with allocated space or have any areas that aren't on the free list

Would also be good if there were some way to repair it, like zeroing out child references that are circular references or rebuilding the free list.

@rkuris
Copy link
Collaborator Author

rkuris commented Oct 11, 2024

Should be added to fwdctl; draft in rkuris/fwdctl-check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

1 participant