eth: remove redundant parentheses (#19108)

This commit is contained in:
Matthew Halpern 2019-02-18 07:42:22 -08:00 committed by Péter Szilágyi
parent 2a0e1bb32b
commit 3c62f965e7

View File

@ -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