Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

--validator doesn't imply --pruning archive anymore #11475

Closed
2 tasks done
nazar-pc opened this issue May 19, 2022 · 5 comments · Fixed by #11519
Closed
2 tasks done

--validator doesn't imply --pruning archive anymore #11475

nazar-pc opened this issue May 19, 2022 · 5 comments · Fixed by #11519
Labels
I6-documentation Documentation needs fixing, improving or augmenting. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder

Comments

@nazar-pc
Copy link
Contributor

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

I suspect after #10995 this description is no longer correct:

        --pruning <PRUNING_MODE>
            Specify the state pruning mode, a number of blocks to keep or 'archive'.
            
            Default is to keep all block states if the node is running as a validator (i.e.
            'archive'), otherwise state is only kept for the last 256 blocks.

Node is no longer storing state for old blocks. It is either expected, but documentation wasn't updated or documentation is correct and there is a regression.

cc @RGafiyatullin

Steps to reproduce

Run any chain with --validator and without --pruning archive

@bkchr
Copy link
Member

bkchr commented May 19, 2022

The docs are just not correct anymore. The new behavior is correct.

@kianenigma kianenigma added I6-documentation Documentation needs fixing, improving or augmenting. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder labels May 20, 2022
@Szegoo
Copy link
Contributor

Szegoo commented May 24, 2022

I would like to work on this.

@bkchr
Copy link
Member

bkchr commented May 24, 2022

@Szegoo go ahead.

@Szegoo
Copy link
Contributor

Szegoo commented May 25, 2022

Just to check before committing, AFAIU currently, the default is to keep only the last 256 blocks. Is this correct? @bkchr @nazar-pc

@bkchr
Copy link
Member

bkchr commented May 25, 2022

Yes 256 is still the default.

@bkchr bkchr moved this to Done ✅ in SDK Node May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I6-documentation Documentation needs fixing, improving or augmenting. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

4 participants