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/peer.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/peer.go')
-rw-r--r-- | les/peer.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/les/peer.go b/les/peer.go index 791d0da24..3ba2df3fe 100644 --- a/les/peer.go +++ b/les/peer.go @@ -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 |