Skip to content

Commit 15cb4d6

Browse files
zsfelfoldifjl
authored andcommitted
core/bloombits: remove old bloombits logic and chain indexer (ethereum#31081)
This PR is #3 of a 3-part series that implements the new log index intended to replace core/bloombits. Based on ethereum#31079 and ethereum#31080 Replaces ethereum#30370 This part removes the old bloombits package and the chain indexer that was only used by bloombits. Deletes the old bloombits database. FilterMaps data structure explanation: https://gist.github.com/zsfelfoldi/a60795f9da7ae6422f28c7a34e02a07e Log index generator code overview: https://gist.github.com/zsfelfoldi/97105dff0b1a4f5ed557924a24b9b9e7 Search pattern matcher code overview: https://gist.github.com/zsfelfoldi/5981735641c956afb18065e84f8aff34 Note that the possibility of a tree hashing scheme and remote proof protocol are mentioned in the documents above but they are not exactly specified yet. These specs are WIP and will be finalized after the local log indexer/filter code is finalized and merged. --------- Co-authored-by: Felix Lange <[email protected]>
1 parent 38855f0 commit 15cb4d6

21 files changed

+80
-2561
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha
906906
rawdb.DeleteBody(db, hash, num)
907907
rawdb.DeleteReceipts(db, hash, num)
908908
}
909-
// Todo(rjl493456442) txlookup, bloombits, etc
909+
// Todo(rjl493456442) txlookup, log index, etc
910910
}
911911
// If SetHead was only called as a chain reparation method, try to skip
912912
// touching the header chain altogether, unless the freezer is broken

core/bloom_indexer.go

Lines changed: 0 additions & 92 deletions
This file was deleted.

core/bloombits/doc.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

core/bloombits/generator.go

Lines changed: 0 additions & 98 deletions
This file was deleted.

core/bloombits/generator_test.go

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)