Merge pull request #19701 from holiman/fixles

les/handler: avoid lookup missing state
pull/19703/head
Péter Szilágyi 6 years ago committed by GitHub
commit 32dafea1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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()

Loading…
Cancel
Save