les: fix megacheck warnings (#14941)
* les: fix megacheck warnings * les: fixed testGetProofs
This commit is contained in:
committed by
Péter Szilágyi
parent
d375193797
commit
fff6e03a79
@ -305,7 +305,7 @@ func testGetReceipt(t *testing.T, protocol int) {
|
||||
}
|
||||
|
||||
// Tests that trie merkle proofs can be retrieved
|
||||
func TestGetProofsLes1(t *testing.T) { testGetReceipt(t, 1) }
|
||||
func TestGetProofsLes1(t *testing.T) { testGetProofs(t, 1) }
|
||||
|
||||
func testGetProofs(t *testing.T, protocol int) {
|
||||
// Assemble the test environment
|
||||
@ -327,7 +327,7 @@ func testGetProofs(t *testing.T, protocol int) {
|
||||
for _, acc := range accounts {
|
||||
req := ProofReq{
|
||||
BHash: header.Hash(),
|
||||
Key: acc[:],
|
||||
Key: crypto.Keccak256(acc[:]),
|
||||
}
|
||||
proofreqs = append(proofreqs, req)
|
||||
|
||||
|
Reference in New Issue
Block a user