les: fix megacheck warnings (#14941)
* les: fix megacheck warnings * les: fixed testGetProofs
This commit is contained in:
committed by
Péter Szilágyi
parent
d375193797
commit
fff6e03a79
@ -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
|
||||
|
Reference in New Issue
Block a user