Skip to content

internal/cli: add support for removedb#478

Merged
manav2401 merged 5 commits into
developfrom
manav/pos-699-add-removedb-support
Aug 9, 2022
Merged

internal/cli: add support for removedb#478
manav2401 merged 5 commits into
developfrom
manav/pos-699-add-removedb-support

Conversation

@manav2401

Copy link
Copy Markdown
Member

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
Comment thread internal/cli/removedb.go
Comment thread internal/cli/removedb.go Outdated
Comment thread internal/cli/removedb.go Outdated
@manav2401 manav2401 requested review from a team and JekaMas 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