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) #2312

Merged
merged 6 commits into from
Aug 5, 2022
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 4, 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)
@czarcas7ic
Copy link
Member

@niccoloraspa we might have to figure out this lint and docker issue for v4.x CI, it could be a simple fix but I don't want to start messing with it just yet

@ValarDragon ValarDragon requested a review from czarcas7ic August 4, 2022 22:31
@czarcas7ic czarcas7ic marked this pull request as draft August 5, 2022 21:37
@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2022

Codecov Report

❗ No coverage uploaded for pull request base (v4.x@291a727). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v4.x    #2312   +/-   ##
=======================================
  Coverage        ?   20.07%           
=======================================
  Files           ?      164           
  Lines           ?    23255           
  Branches        ?        0           
=======================================
  Hits            ?     4669           
  Misses          ?    17830           
  Partials        ?      756           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@czarcas7ic czarcas7ic marked this pull request as ready for review August 5, 2022 21:54
@czarcas7ic czarcas7ic merged commit 997d823 into v4.x Aug 5, 2022
@czarcas7ic czarcas7ic deleted the mergify/bp/v4.x/pr-1262 branch August 5, 2022 21:55
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.

3 participants