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

eth/protocols/snap, eth/downloader: don't use bloom filter in snap sync #22513

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Mar 17, 2021

This PR removes the use of a bloom filter during snap sync. Bloom filters are nice, but for snap they don't really help that much. We only ever want to do a bit of light healing on top of mostly correct state.

In practice, however, if the user restarts the node, it will kick of an entire trie-iteration to filll the bloom filter, which is a bit counterproductive for a feature that was meant to accelerate things by keeping the disk IO down.

@holiman
Copy link
Contributor Author

holiman commented Mar 20, 2021

Tested a snap sync on goerli, works fine

@holiman holiman added this to the 1.10.2 milestone Mar 20, 2021
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit 477ec75 into ethereum:master Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants