aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 18:34:41 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-22 18:34:41 +0800
commita32a2b933ad6793a2fe4172cd46c5c5906da259a (patch)
tree310f084204856910fe5448a105b59fc587c5bfdf /eth/downloader
parent04e175b8ecc95080742aa8c8be68b155433a13bf (diff)
downloadgo-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.gz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.bz2
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.lz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.xz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.zst
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.zip
cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments (#19869)
Fixed assigning values to variables we don't end up using.
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 874e6e07f..edd0eb4d9 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -997,7 +997,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
// chain errors.
if n := len(headers); n > 0 {
// Retrieve the current head we're at
- head := uint64(0)
+ var head uint64
if d.mode == LightSync {
head = d.lightchain.CurrentHeader().Number.Uint64()
} else {