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

cmd/geth: add dbDeleteAll #2275

Closed
wants to merge 1 commit into from

Conversation

weiihann
Copy link
Contributor

Description

This PR adds a new tool to delete all keys from the database based on a prefix.

Example

Usage: ./bsc db delete-all <prefix>

Example:

./bsc db delete-all 0x41

The code above will delete all the keys for the prefix 'A', which removes all account trie nodes in PBSS.

@zzzckck
Copy link
Collaborator

zzzckck commented Mar 12, 2024

#2021
This proposal may effect your PR, which will move trie node into a separate database.

@weiihann
Copy link
Contributor Author

#2021 This proposal may effect your PR, which will move trie node into a separate database.

I'll wait for it to merge and be tested first. This PR is not a priority, will convert to draft.

@weiihann weiihann marked this pull request as draft March 12, 2024 06:26
@weiihann weiihann closed this Mar 18, 2024
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