Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[NC-2200] Update WorldStateDownloader to only filter out known code requests #777

Merged

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented Feb 5, 2019

PR description

This PR addresses an issue where the WorldStateDownloader can be overly aggressive in filtering outgoing network requests for node data. Previously, we would filter out node data requests when we have the to-be-requested data stored locally. This can cause us to miss downloading some world state in cases where an account contains code that exactly matches an account or account storage trie node.

For now, I've updated the downloader to only filter out requests for known code, which should be safe. We should be able to do more advanced filtering on trie nodes by inspecting our local data, but I am deferring that work for now.

@mbaxter mbaxter requested a review from ajsutton February 5, 2019 22:20
@mbaxter mbaxter changed the title Update WorldStateDownloader to only filter out known code requests [NC-2200] Update WorldStateDownloader to only filter out known code requests Feb 5, 2019
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

@mbaxter mbaxter merged commit b249bd1 into PegaSysEng:master Feb 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants