From 6e78ee396c8b2ff589a384caa003017dab39ee6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Sat, 10 Feb 2018 14:30:30 +0200 Subject: [PATCH] les: drop dead tester code --- les/handler_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/les/handler_test.go b/les/handler_test.go index cb8a8390e4..9468032f67 100644 --- a/les/handler_test.go +++ b/les/handler_test.go @@ -17,7 +17,6 @@ package les import ( - "bytes" "encoding/binary" "math/big" "math/rand" @@ -46,24 +45,6 @@ func expectResponse(r p2p.MsgReader, msgcode, reqID, bv uint64, data interface{} return p2p.ExpectMsg(r, msgcode, resp{reqID, bv, data}) } -func testCheckProof(t *testing.T, exp *light.NodeSet, got light.NodeList) { - if exp.KeyCount() > len(got) { - t.Errorf("proof has fewer nodes than expected") - return - } - if exp.KeyCount() < len(got) { - t.Errorf("proof has more nodes than expected") - return - } - for _, node := range got { - n, _ := exp.Get(crypto.Keccak256(node)) - if !bytes.Equal(n, node) { - t.Errorf("proof contents mismatch") - return - } - } -} - // Tests that block headers can be retrieved from a remote chain based on user queries. func TestGetBlockHeadersLes1(t *testing.T) { testGetBlockHeaders(t, 1) } func TestGetBlockHeadersLes2(t *testing.T) { testGetBlockHeaders(t, 2) }