We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6261b commit 5fb463dCopy full SHA for 5fb463d
core/bloom_indexer.go
@@ -75,7 +75,7 @@ func (b *BloomIndexer) Process(ctx context.Context, header *types.Header) error
75
// Commit implements core.ChainIndexerBackend, finalizing the bloom section and
76
// writing it out into the database.
77
func (b *BloomIndexer) Commit() error {
78
- batch := b.db.NewBatch()
+ batch := b.db.NewBatchWithSize((int(b.size) / 8) * types.BloomBitLength)
79
for i := 0; i < types.BloomBitLength; i++ {
80
bits, err := b.gen.Bitset(uint(i))
81
if err != nil {
0 commit comments