aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--les/handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/les/handler.go b/les/handler.go
index 32f1903d1..4e98e0b32 100644
--- a/les/handler.go
+++ b/les/handler.go
@@ -868,6 +868,10 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
}
root = header.Root
}
+ // If a header lookup failed (non existent), ignore subsequent requests for the same header
+ if root == (common.Hash{}) {
+ continue
+ }
// Open the account or storage trie for the request
statedb := pm.blockchain.StateCache()