aboutsummaryrefslogtreecommitdiffstats
path: root/eth/bloombits.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2017-09-06 07:43:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-06 16:14:20 +0800
commit6ff2c02991e60a8db54c2f60027442277fd889c0 (patch)
treec92ecb1a45cb9096a0c528f4b4b9eed92026f65d /eth/bloombits.go
parentf585f9eee8cb18423c23fe8b517b5b4cbe3b3755 (diff)
downloadgo-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.gz
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.bz2
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.lz
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.xz
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.tar.zst
go-tangerine-6ff2c02991e60a8db54c2f60027442277fd889c0.zip
core/bloombits: AddBloom index parameter and fixes variable names
Diffstat (limited to 'eth/bloombits.go')
-rw-r--r--eth/bloombits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/bloombits.go b/eth/bloombits.go
index 02de408b0..32f6c7b31 100644
--- a/eth/bloombits.go
+++ b/eth/bloombits.go
@@ -122,7 +122,7 @@ func (b *BloomIndexer) Reset(section uint64) {
// Process implements core.ChainIndexerBackend, adding a new header's bloom into
// the index.
func (b *BloomIndexer) Process(header *types.Header) {
- b.gen.AddBloom(header.Bloom)
+ b.gen.AddBloom(uint(header.Number.Uint64()-b.section*b.size), header.Bloom)
b.head = header.Hash()
}