@@ -21,15 +21,15 @@ type TransactionBloomIndexer struct {
2121 gen * bloombits.Generator // generator to rotate the bloom bits crating the bloom index
2222 section uint64 // Section is the section number being processed currently
2323 head common.Hash // Head is the hash of the last header processed
24- config * params.ChainConfig
24+ config * params.ChainConfig
2525}
2626
2727// NewTransactionBloomIndexer returns a chain indexer that generates bloom bits data for the
2828// canonical chain for transactions filtering.
2929func NewTransactionBloomIndexer (db ethdb.Database , chainConfig * params.ChainConfig , size , confirms uint64 ) * ChainIndexer {
3030 backend := & TransactionBloomIndexer {
31- db : db ,
32- size : size ,
31+ db : db ,
32+ size : size ,
3333 config : chainConfig ,
3434 }
3535 table := rawdb .NewTable (db , string (rawdb .BloomBitsTransactionIndexPrefix ))
@@ -51,7 +51,7 @@ func (b *TransactionBloomIndexer) Process(ctx context.Context, header *types.Hea
5151 // Get the bloom value from the db
5252 bloom , err := b .getOrCreateTxBloom (header )
5353 if err != nil {
54- return err ;
54+ return err
5555 }
5656 // Add the bloom value to the bloombits
5757 b .gen .AddBloom (uint (header .Number .Uint64 ()- b .section * b .size ), * bloom )
@@ -79,7 +79,7 @@ func (b *TransactionBloomIndexer) Prune(threshold uint64) error {
7979}
8080
8181// getOrCreateTxBloom fetches the transactions bloom for the block, if it doesn't exist it will create the transaction bloom and save it
82- func (b * TransactionBloomIndexer ) getOrCreateTxBloom (header * types.Header ) (* types.Bloom , error ) {
82+ func (b * TransactionBloomIndexer ) getOrCreateTxBloom (header * types.Header ) (* types.Bloom , error ) {
8383 bloom := rawdb .ReadTxBloom (b .db , header .Hash (), header .Number .Uint64 ())
8484
8585 if bloom == nil {
0 commit comments