aboutsummaryrefslogtreecommitdiffstats
path: root/les/peer.go
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2018-01-09 18:41:59 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-01-09 18:41:59 +0800
commit83d16574444d0b389755c9003e74a90d2ab7ca2e (patch)
treebdf066c42799014dd50bfa71d62c2dd85423b66a /les/peer.go
parent9d06026c1991fdd8f034ce194fa20a0740c21810 (diff)
downloaddexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar.gz
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar.bz2
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar.lz
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar.xz
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.tar.zst
dexon-83d16574444d0b389755c9003e74a90d2ab7ca2e.zip
les: fix les/1 CHT compatibility issue (#15692)
Diffstat (limited to 'les/peer.go')
-rw-r--r--les/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/les/peer.go b/les/peer.go
index 04d747a6b..b72c80d35 100644
--- a/les/peer.go
+++ b/les/peer.go
@@ -296,7 +296,7 @@ func (p *peer) RequestHelperTrieProofs(reqID, cost uint64, reqs []HelperTrieReq)
}
blockNum := binary.BigEndian.Uint64(req.Key)
// convert HelperTrie request to old CHT request
- reqsV1[i] = ChtReq{ChtNum: (req.TrieIdx+1)*(light.ChtFrequency/light.ChtV1Frequency) - 1, BlockNum: blockNum, FromLevel: req.FromLevel}
+ reqsV1[i] = ChtReq{ChtNum: (req.TrieIdx + 1) * (light.ChtFrequency / light.ChtV1Frequency), BlockNum: blockNum, FromLevel: req.FromLevel}
}
return sendRequest(p.rw, GetHeaderProofsMsg, reqID, cost, reqsV1)
case lpv2: