les/handler: avoid lookup missing state

pull/19701/head
Martin Holst Swende 6 years ago
parent 50e3795eef
commit 3675b8545d
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0
  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