les: remove useless protocol defines (#22115)

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).
This commit is contained in:
gary rong
2021-01-17 02:06:18 +08:00
committed by GitHub
parent c76573a97b
commit 034ecc3210
4 changed files with 23 additions and 22 deletions

View File

@ -443,7 +443,7 @@ func testGetCHTProofs(t *testing.T, protocol int) {
Type: htCanonical,
TrieIdx: 0,
Key: key,
AuxReq: auxHeader,
AuxReq: htAuxHeader,
}}
// Send the proof request and verify the response
sendRequest(server.peer.app, GetHelperTrieProofsMsg, 42, requestsV2)