diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-06-12 18:08:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 18:08:42 +0800 |
commit | 32dafea1f0aeae72a424126195d1a3bb1d832eea (patch) | |
tree | eae4f167a70d04307cbe484f68cee54068175a6b /les | |
parent | 3d7d7384ca51a6d1588312ebf17f2811ec4d0b25 (diff) | |
parent | 3675b8545dfe41b9d095c126454f7653c1b4fa3e (diff) | |
download | go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar.gz go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar.bz2 go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar.lz go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar.xz go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.tar.zst go-tangerine-32dafea1f0aeae72a424126195d1a3bb1d832eea.zip |
Merge pull request #19701 from holiman/fixles
les/handler: avoid lookup missing state
Diffstat (limited to 'les')
-rw-r--r-- | les/handler.go | 4 |
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() |