-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
les, light: fix CHT trie retrievals #16039
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To quote the wise @karalabe:
Most importantly, why did all the tests pass and could we add one that repros this, seems to be a very nasty issue to leave untested
b311f11
to
92e8ab4
Compare
92e8ab4
to
cbd605c
Compare
Don't listen to him, has no clue what he's saying. |
@holiman Added the tests for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* les, light: fix CHT trie retrievals * les, light: minor polishes, test remote CHT retrievals * les, light: deterministic nodeset rlp, bloombits test skeleton * les: add an event emission to the les bloombits test * les: drop dead tester code
* les, light: fix CHT trie retrievals * les, light: minor polishes, test remote CHT retrievals * les, light: deterministic nodeset rlp, bloombits test skeleton * les: add an event emission to the les bloombits test * les: drop dead tester code
In my trie rework PR I blindly changed all the light server code to serve tries from our in-memory cache, instead of disk. This was overzealous, as I also rewrote serving CHT tries from the state trie memory database. This lead to light servers being unable to serve CHTs any more, and light clients thus starting to sync from block 0.
This PR fixes that by reverting to the previous behavior whereby CHTs are loaded directly from disk with the correct database prefixing.