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 (State and Blocks Pruning) #4801

Closed
andreclaro opened this issue Jun 14, 2024 · 1 comment · Fixed by #4810
Closed

Pruning (State and Blocks Pruning) #4801

andreclaro opened this issue Jun 14, 2024 · 1 comment · Fixed by #4810
Labels
I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@andreclaro
Copy link

andreclaro commented Jun 14, 2024

Hello Parity team,

I have the following questions regarding the pruning features:

  1. This setting can only be set on the first creation of the database - Is this still true?
  2. Does the above statement also apply to --blocks-pruning?
  3. Any idea on how much storage saving do we expect to see if we only save 1 month worth of blocks (state and blocks bodies) compare with an archive node?

https://github.com/paritytech/polkadot-sdk/blob/ae0b3bf6733e7b9e18badb16128a6b25bef1923b/substrate/client/cli/src/params/pruning_params.rs#L30C1-L32C81

Thanks!

@github-actions github-actions bot added the I10-unconfirmed Issue might be valid, but it's not yet known. label Jun 14, 2024
@bkchr
Copy link
Member

bkchr commented Jun 17, 2024

  1. This setting can only be set on the first creation of the database - Is this still true?

Partly, yes.

2. Does the above statement also apply to --blocks-pruning?

No.

3. Any idea on how much storage saving do we expect to see if we only save 1 month worth of blocks (state and blocks bodies) compare with an archive node?

Depends on the age of the chain etc. As the archive node is storing everything, the factor will increase over time.

github-merge-queue bot pushed a commit that referenced this issue Jun 17, 2024
Closes: #4801

@andreclaro I hope this makes it more clear from the docs directly.
niklasad1 pushed a commit that referenced this issue Jun 18, 2024
Closes: #4801

@andreclaro I hope this makes it more clear from the docs directly.
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this issue Aug 2, 2024
Closes: paritytech#4801

@andreclaro I hope this makes it more clear from the docs directly.
sfffaaa pushed a commit to peaqnetwork/polkadot-sdk that referenced this issue Dec 27, 2024
Closes: paritytech#4801

@andreclaro I hope this makes it more clear from the docs directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants