-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Erigon 3: Purified states repressentation #13227
base: main
Are you sure you want to change the base?
Conversation
Update: now it is automatic. you run the command on the datadir with flag |
aha, while i wrote this comment: i accidentally found :-) |
I can do some tweaks so that it can be added as part of the automation. the main modification will be adding a check to L0 and see the last date of modification. if it is >3 months then we purify. how does that sounds? naturally - if we regen snapshots, then we need to force it through. another approach (perhaps better) maybe is to require a minimum skip ratio for L0... say >10%. Also forgot to specify benefits:
|
Putting here your questions and my answers from discord
Not really.
I made it so - it is fully automatic and you just need to purify.
We purify L0,L1,L2,... L0 has biggest benefit and commitment is enough.
Yes, I did that
that is the output dir which is only relevant with --replace-in-datadir=false
I think this is not so important as functionally they are the same.
Did it for you |
“ Did it for you” a- i didn’t try. Left it for you. |
Purifification of states works by pruning historical states from dangling nodes.
The process is to collect all keys into a temporary MDBX with mapping
node -> layer
, then we iterate over each node again and remove all of them whosenode->layer
is not matching in the historical states DB.