mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: add invalid counter for duplicate invalid req
This commit is contained in:
parent
2b349f474a
commit
ce08f205e8
1 changed files with 1 additions and 0 deletions
|
|
@ -885,6 +885,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
|||
}
|
||||
// If a header lookup failed (non existent), ignore subsequent requests for the same header
|
||||
if root == (common.Hash{}) {
|
||||
atomic.AddUint32(&p.invalidCount, 1)
|
||||
continue
|
||||
}
|
||||
// Open the account or storage trie for the request
|
||||
|
|
|
|||
Loading…
Reference in a new issue