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

internal/cli: add support for removedb #478

Merged
merged 5 commits into from
Aug 9, 2022

Conversation

manav2401
Copy link
Contributor

This PR adds support for removedb in the new-cli with similar functionality as in the old cli.

It can be used as bor removedb <datadir> and is responsible to clear the blockchain and state databases.

Note: It assumes that the ancient db lies inside the chaindata folder in datadir as we don't have access to the DatabaseFreezer path in the code.

Jira - POS-699: Support removedb in new-cli

@manav2401 manav2401 requested a review from a team August 2, 2022 15:12
internal/cli/removedb.go Outdated Show resolved Hide resolved
internal/cli/removedb.go Outdated Show resolved Hide resolved
@manav2401 manav2401 requested review from JekaMas and a team August 3, 2022 12:08
@manav2401 manav2401 merged commit ac559bc into develop Aug 9, 2022
@manav2401 manav2401 deleted the manav/pos-699-add-removedb-support branch August 9, 2022 03:46
cffls pushed a commit to cffls/bor that referenced this pull request Aug 17, 2022
* internal/cli: add support for removedb

* update docs

* internal/cli: use constant path, handle err
cffls pushed a commit that referenced this pull request Aug 23, 2022
* internal/cli: add support for removedb

* update docs

* internal/cli: use constant path, handle err
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.

4 participants