diff options
author | Felföldi Zsolt <zsfelfoldi@gmail.com> | 2017-08-09 00:31:08 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-09 00:31:08 +0800 |
commit | fff6e03a792b0e0a84943e2c3764c39b2840458a (patch) | |
tree | 37d811da67038ac2bacdf1b1595a8f867b46eba0 /les/handler_test.go | |
parent | d375193797e8198a82c6a1796064ffb289c6956e (diff) | |
download | go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.gz go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.bz2 go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.lz go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.xz go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.zst go-tangerine-fff6e03a792b0e0a84943e2c3764c39b2840458a.zip |
les: fix megacheck warnings (#14941)
* les: fix megacheck warnings
* les: fixed testGetProofs
Diffstat (limited to 'les/handler_test.go')
-rw-r--r-- | les/handler_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/les/handler_test.go b/les/handler_test.go index 5df1d3463..b1f1aa095 100644 --- a/les/handler_test.go +++ b/les/handler_test.go @@ -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) |