diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 18:34:41 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-07-22 18:34:41 +0800 |
commit | a32a2b933ad6793a2fe4172cd46c5c5906da259a (patch) | |
tree | 310f084204856910fe5448a105b59fc587c5bfdf /eth/downloader | |
parent | 04e175b8ecc95080742aa8c8be68b155433a13bf (diff) | |
download | go-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.go | 2 |
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 { |