les: fix megacheck warnings (#14941)

* les: fix megacheck warnings

* les: fixed testGetProofs
This commit is contained in:
Felföldi Zsolt
2017-08-08 17:31:08 +01:00
committed by Péter Szilágyi
parent d375193797
commit fff6e03a79
8 changed files with 6 additions and 96 deletions

View File

@ -38,10 +38,7 @@ var (
errNotRegistered = errors.New("peer is not registered")
)
const (
maxHeadInfoLen = 20
maxResponseErrors = 50 // number of invalid responses tolerated (makes the protocol less brittle but still avoids spam)
)
const maxResponseErrors = 50 // number of invalid responses tolerated (makes the protocol less brittle but still avoids spam)
type peer struct {
*p2p.Peer