diff options
author | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2017-09-06 07:43:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 16:14:20 +0800 |
commit | 6ff2c02991e60a8db54c2f60027442277fd889c0 (patch) | |
tree | c92ecb1a45cb9096a0c528f4b4b9eed92026f65d /eth/filters | |
parent | f585f9eee8cb18423c23fe8b517b5b4cbe3b3755 (diff) | |
download | dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.gz dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.bz2 dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.lz dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.xz dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.zst dexon-6ff2c02991e60a8db54c2f60027442277fd889c0.zip |
core/bloombits: AddBloom index parameter and fixes variable names
Diffstat (limited to 'eth/filters')
-rw-r--r-- | eth/filters/bench_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index d994378fc..abbf4593e 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -98,7 +98,7 @@ func benchmarkBloomBits(b *testing.B, sectionSize uint64) { if header == nil { b.Fatalf("Error creating bloomBits data") } - bc.AddBloom(header.Bloom) + bc.AddBloom(uint(i-sectionIdx*sectionSize), header.Bloom) } sectionHead := core.GetCanonicalHash(db, (sectionIdx+1)*sectionSize-1) for i := 0; i < types.BloomBitLength; i++ { |