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

Valnodes forceprune (backport #1262) #1320

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 22, 2022

This is an automatic backport of pull request #1262 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Update root.go

Add forceprune to CLI (Ability to compact/prune via CLI)

* Added Forceprune.go

Forceprune provides options to prune blockstore.db and state.db. By default, it would prune blockstore.db and state.db up to 14 days (unbounding period). In state.db while it keeps validator and consensus information up to 14 days it prunes abci responses (keeping only last 1000 blocks abci response).
If required, one can override 14 days of blocks.
Forceprune does not touch application.db or indexer.

* Added description for Forceprune option

* Update forceprune.go

* Fix db close

* Update cmd/osmosisd/cmd/forceprune.go

Co-authored-by: Roman <34196718+p0mvn@users.noreply.github.com>

* Update forceprune.go

Moved to const values, added defer close db

* Fix lint

Co-authored-by: Roman <34196718+p0mvn@users.noreply.github.com>
Co-authored-by: Dev Ojha <dojha@berkeley.edu>
(cherry picked from commit 15f131e)
@codecov-commenter
Copy link

Codecov Report

Merging #1320 (571d9c0) into v7.x (be00a48) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v7.x    #1320   +/-   ##
=======================================
  Coverage   20.63%   20.63%           
=======================================
  Files         199      199           
  Lines       25803    25803           
=======================================
  Hits         5325     5325           
  Misses      19509    19509           
  Partials      969      969           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be00a48...571d9c0. Read the comment docs.

@ValarDragon ValarDragon merged commit 175b3cc into v7.x Apr 22, 2022
@ValarDragon ValarDragon deleted the mergify/bp/v7.x/pr-1262 branch April 22, 2022 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants