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

Pruning Store #1392

Closed
Tracked by #1390
Ja7ad opened this issue Jul 2, 2024 · 0 comments · Fixed by #1400
Closed
Tracked by #1390

Pruning Store #1392

Ja7ad opened this issue Jul 2, 2024 · 0 comments · Fixed by #1400
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Ja7ad
Copy link
Contributor

Ja7ad commented Jul 2, 2024

A Full Node can convert to a Pruned Node by pruning the store and removing old blocks. Pruning the store is a time and resource consuming process and should not be performed while the node is running. We need to add a new command named prune to pactus-daemon to prune an offline node. A public method Prune should be defined in the store. This method iterates over all blocks from the pruning height to the genesis block and prunes them. The pruning height is LastBlockHeight - RetentionBlocks.

https://pips.pactus.org/PIPs/pip-27#pruning-store

@Ja7ad Ja7ad mentioned this issue Jul 2, 2024
6 tasks
@Ja7ad Ja7ad added the enhancement New feature or request label Jul 2, 2024
@Ja7ad Ja7ad self-assigned this Jul 6, 2024
@Ja7ad Ja7ad added this to the v1.4.0 milestone Jul 6, 2024
@b00f b00f closed this as completed in #1400 Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant