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 for: exec, log_index, tx_lookup, history stages #2399

Merged
merged 32 commits into from
Jul 20, 2021
Merged

Conversation

AskAlexSharov
Copy link
Collaborator

@AskAlexSharov AskAlexSharov commented Jul 19, 2021

  • Implemented pruning for exec, log_index, tx_lookup, history stages
  • Prune options are not boolean anymore - they are alias to uint64 - with "pruning distance" meaning
  • invert --storage-mode to --prune. And db migration for it.
  • added flags --prune.*.older
  • integration: add to all stage commands flag --prune.to
  • reduce amount of logs (by printing only timings slower than 10ms)
  • Rename: integration set_storage_mode
  • TEVM - move to --experiments=tevm,... flag

Migration guide for release notes:

Flag --prune does replace and Invert --storage-mode flag.
If --storage-mode=h means "please DON'T prune history" - then --prune=h means "please DO prune history".
Example (all modes are hrtc): if you using --storage-mode=ht change to --prune=rc

New flag docs:

Choose which ancient data delete from DB: 
	h - prune history (ChangeSets, HistoryIndices - used by historical state access)
	r - prune receipts (Receipts, Logs, LogTopicIndex, LogAddressIndex - used by eth_getLogs and similar RPC methods)
	t - prune transaction by it's hash index
	c - prune call traces (used by trace_* methods)
Does delete data older than 90K block (can set another value by '--prune.*.older' flags). 
If item is NOT in the list - means NO pruning for this data.	

@AlexeyAkhunov
Copy link
Contributor

This looks great, thank you!

@AskAlexSharov AskAlexSharov changed the title [wip] Pruning for: exec, log_index, tx_lookup, history stages Pruning for: exec, log_index, tx_lookup, history stages Jul 20, 2021
@AlexeyAkhunov AlexeyAkhunov merged commit c3e1cfd into devel Jul 20, 2021
@AlexeyAkhunov AlexeyAkhunov deleted the prune_mode branch July 20, 2021 20:03
Copy link

@prakash9950 prakash9950 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My account cypro is pending but no one help me withdraw I think this is not true system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants