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

les: remove useless protocol defines #22115

Merged
merged 2 commits into from
Jan 16, 2021

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Jan 5, 2021

This PR has two changes in the les protocol.

  • the auxRoot is not supported. See LES: change the GetHelperTrieProofs message in the les4 devp2p#171 for more information
  • the empty response will be returned in GetHelperTrieProofsMsg request if the merkle proving is failed
    • note, for backward compatibility, the empty merkle proof as well as the request auxiliary data will still be returned in les2/3 protocol no matter the proving is successful or not
    • the proving failure can happen e.g. request the proving for a non-included entry in helper trie(unstable header)

Copy link
Contributor

@zsfelfoldi zsfelfoldi left a comment

Choose a reason for hiding this comment

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

LGTM. Note: I originally added the auxRoot for a complex trustless CHT verification scheme (client asks multiple servers, asks merkle proofs to find out which one is right if the servers return different roots). Now I gave up on this plan because I don't think it's worth the effort so I think it's fine to remove this feature.

Copy link

@DGKSK8LIFE DGKSK8LIFE left a comment

Choose a reason for hiding this comment

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

Maybe just remove instead of commenting it out? Idk I wanna see what other people think.

@fjl fjl merged commit 034ecc3 into ethereum:master Jan 16, 2021
@fjl fjl added this to the 1.10.0 milestone Jan 16, 2021
bulgakovk pushed a commit to bulgakovk/go-ethereum that referenced this pull request Jan 26, 2021
This PR has two changes in the les protocol:

- the auxRoot is not supported. See ethereum/devp2p#171 for more information
- the empty response will be returned in GetHelperTrieProofsMsg request if the merkle
   proving is failed. note, for backward compatibility, the empty merkle proof as well as
   the request auxiliary data will still be returned in  les2/3 protocol no matter the proving
   is successful or not. the proving failure can happen e.g. request the proving for a
   non-included entry in helper trie (unstable header).
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