aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2019-08-27 21:29:00 +0800
committerMartin Holst Swende <martin@swende.se>2019-08-27 21:29:00 +0800
commit396f1dd87b91cc08a1db08aaa2b901a47b69d26f (patch)
tree07a82d2a0c02cbbb5314ee1e2217aa23ff6c89d2 /les
parent68502595f670c02fe2f056b6e3e83c92c14d62e5 (diff)
downloadgo-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar.gz
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar.bz2
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar.lz
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar.xz
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.tar.zst
go-tangerine-396f1dd87b91cc08a1db08aaa2b901a47b69d26f.zip
les: fix panic (#20013)
Diffstat (limited to 'les')
-rw-r--r--les/server_handler.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/server_handler.go b/les/server_handler.go
index e34be4d3d..79c0a08a9 100644
--- a/les/server_handler.go
+++ b/les/server_handler.go
@@ -583,7 +583,6 @@ func (h *serverHandler) handleMsg(p *peer, wg *sync.WaitGroup) error {
}
// Look up the root hash belonging to the request
var (
- number *uint64
header *types.Header
trie state.Trie
)
@@ -591,7 +590,7 @@ func (h *serverHandler) handleMsg(p *peer, wg *sync.WaitGroup) error {
root, lastBHash = common.Hash{}, request.BHash
if header = h.blockchain.GetHeaderByHash(request.BHash); header == nil {
- p.Log().Warn("Failed to retrieve header for proof", "block", *number, "hash", request.BHash)
+ p.Log().Warn("Failed to retrieve header for proof", "hash", request.BHash)
atomic.AddUint32(&p.invalidCount, 1)
continue
}