-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Confusing blocks-pruning description #12811
Comments
Hi,
The consensus engine may not revert a finalized block,
The default option is The The
In this example, when
I'm not quite sure if this is right. I supposed that was true at some point and As opposed to AppendixThe substrate/client/db/src/lib.rs Lines 322 to 331 in 54b7395
The CLI exposes this option to end-users here: substrate/client/cli/src/params/pruning_params.rs Lines 33 to 42 in 54b7395
While the user input flag is parsed here: substrate/client/cli/src/params/pruning_params.rs Lines 66 to 76 in 54b7395
Then, here is where the pruning actually happens: substrate/client/db/src/lib.rs Lines 1738 to 1750 in 54b7395
|
Thank you for the clear explanation. I think the confusion came from the "NOTE: only finalized blocks are subject for removal!" which as you are suggesting might not be true anymore. |
As I understand it, the note is here to underline that the pruning (when a pruning range is defined) is done against finalized the blocks in db, with range applying over the latest finalized block number. |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
If only the finalized blocks are subject to removal, and all finalized blocks are canonical (maybe I'm wrong here?), what is the difference between parameter default (all finalized blocks) and
archive-canonical
?Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: