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

chore: random light node prune interval #2373

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Conversation

mfrankovi
Copy link
Contributor

Previously all light nodes would delete old data at the same block number. This change makes the block number random per node based on the node address.

Pruning state_db can be slow and it can make node delay its blocks execution. If large number of nodes do this at the same time it can stop the whole network from progressing.

@mfrankovi mfrankovi force-pushed the light_node_interval branch from 3ad1f23 to 6b6a812 Compare March 7, 2023 15:02
@mfrankovi mfrankovi force-pushed the light_node_interval branch from 6b6a812 to a301284 Compare March 8, 2023 08:00
@mfrankovi mfrankovi requested review from kstdl and MatusKysel March 8, 2023 08:52
@mfrankovi mfrankovi merged commit 45d644a into develop Mar 8, 2023
@mfrankovi mfrankovi deleted the light_node_interval branch March 8, 2023 14:18
@taraxadeploy
Copy link
Collaborator

prnet cleaned-up successfully

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.

4 participants