diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-18 23:42:22 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-18 23:42:22 +0800 |
commit | 3c62f965e7e83275a06806a89ed924072fc589ee (patch) | |
tree | 6f57937febb7d165324ac27943d789e33426387f /eth/downloader | |
parent | 2a0e1bb32bc47b6c130a2f4651f37b1692951d55 (diff) | |
download | go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar.gz go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar.bz2 go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar.lz go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar.xz go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.tar.zst go-tangerine-3c62f965e7e83275a06806a89ed924072fc589ee.zip |
eth: remove redundant parentheses (#19108)
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 58d19254c..b8eaa6a5e 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -719,7 +719,7 @@ func (d *Downloader) findAncestor(p *peerConnection, remoteHeader *types.Header) } // Make sure the peer's reply conforms to the request for i, header := range headers { - expectNumber := from + int64(i)*int64((skip+1)) + expectNumber := from + int64(i)*int64(skip+1) if number := header.Number.Int64(); number != expectNumber { p.log.Warn("Head headers broke chain ordering", "index", i, "requested", expectNumber, "received", number) return 0, errInvalidChain |