aboutsummaryrefslogtreecommitdiffstats
path: root/les/benchmark.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2019-04-05 23:40:03 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2019-04-08 19:17:24 +0800
commit64f9c1ea0984141623843abfa9262fc9401192f2 (patch)
tree72b6e966a4705446bf2a05ad84ba84786aef3009 /les/benchmark.go
parent5515f364ae1673c1bf5569c089b5853c90ea1655 (diff)
downloadgo-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar.gz
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar.bz2
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar.lz
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar.xz
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.tar.zst
go-tangerine-64f9c1ea0984141623843abfa9262fc9401192f2.zip
les, light: remove support for les/1 4096 block CHT sections
Diffstat (limited to 'les/benchmark.go')
-rw-r--r--les/benchmark.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/benchmark.go b/les/benchmark.go
index cb302c6ea..925d1d89e 100644
--- a/les/benchmark.go
+++ b/les/benchmark.go
@@ -135,8 +135,7 @@ func (b *benchmarkHelperTrie) init(pm *ProtocolManager, count int) error {
b.sectionCount, b.headNum, _ = pm.server.bloomTrieIndexer.Sections()
} else {
b.sectionCount, _, _ = pm.server.chtIndexer.Sections()
- b.sectionCount /= (params.CHTFrequencyClient / params.CHTFrequencyServer)
- b.headNum = b.sectionCount*params.CHTFrequencyClient - 1
+ b.headNum = b.sectionCount*params.CHTFrequency - 1
}
if b.sectionCount == 0 {
return fmt.Errorf("no processed sections available")