Skip to main content
4 votes
Accepted

Is there a way to prune blocks/transactions from the database

If you run with --keep-blocks=256 you will prune all blocks that are 256 blocks behind the last finalized block. Block pruning is disabled by default.
bkchr's user avatar
  • 11.6k
3 votes
Accepted

How to prune sibling blocks?

The correct way to revert the siblings is to use ./binary revert ... Ex: polkadot revert --chain=rococo-local 1 This was not possible for parachain due to how they treat leaves and best blocks (...
Crystalin's user avatar
  • 790
1 vote
Accepted

What does `Failed to promote during pruning` mean exactly? Why might one be seeing that in their node logs?

Should be nothing to worry about. Some transaction failed to be imported to the ready pool. As long as you are not sending these transactions on your own, you probably can not do anything about it.
bkchr's user avatar
  • 11.6k
1 vote

What's the fastest way to sync a node only keeping full state for the last N blocks?

Check this guide from the Polkadot Wiki: Set up a Full Node. Running as a simple sync node, only the state of the past 256 blocks will be kept, if you want all the history run as an Archive Node. If ...
Alex Bean's user avatar
  • 5,757
1 vote

State Pruning: Archive-Canonical vs Archive-Finalized

Are there any plans to add something like archive-finalized? So in this setting unfinalized blocks would not be prunned. https://github.com/paritytech/substrate/pull/13157 after this pr blocks will ...
bkchr's user avatar
  • 11.6k

Only top scored, non community-wiki answers of a minimum length are eligible