aboutsummaryrefslogtreecommitdiffstats
path: root/les/handler.go
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2017-08-09 00:31:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-09 00:31:08 +0800
commitfff6e03a792b0e0a84943e2c3764c39b2840458a (patch)
tree37d811da67038ac2bacdf1b1595a8f867b46eba0 /les/handler.go
parentd375193797e8198a82c6a1796064ffb289c6956e (diff)
downloaddexon-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.gz
dexon-fff6e03a792b0e0a84943e2c3764c39b2840458a.tar.zst
dexon-fff6e03a792b0e0a84943e2c3764c39b2840458a.zip
les: fix megacheck warnings (#14941)
* les: fix megacheck warnings * les: fixed testGetProofs
Diffstat (limited to 'les/handler.go')
-rw-r--r--les/handler.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/les/handler.go b/les/handler.go
index f50abaaa3..234b6e998 100644
--- a/les/handler.go
+++ b/les/handler.go
@@ -69,8 +69,6 @@ func errResp(code errCode, format string, v ...interface{}) error {
return fmt.Errorf("%v - %v", code, fmt.Sprintf(format, v...))
}
-type hashFetcherFn func(common.Hash) error
-
type BlockChain interface {
HasHeader(hash common.Hash) bool
GetHeader(hash common.Hash, number uint64) *types.Header
@@ -119,10 +117,6 @@ type ProtocolManager struct {
quitSync chan struct{}
noMorePeers chan struct{}
- syncMu sync.Mutex
- syncing bool
- syncDone chan struct{}
-
// wait group is used for graceful shutdowns during downloading
// and processing
wg *sync.WaitGroup