-
Notifications
You must be signed in to change notification settings - Fork 20.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/bloombits: remove old bloombits logic and chain indexer #31081
Conversation
24cae44
to
99cfa64
Compare
99cfa64
to
a1dd97d
Compare
005a47c
to
6470cea
Compare
eth/ethconfig/config.go
Outdated
@@ -53,6 +53,7 @@ var Defaults = Config{ | |||
NetworkId: 0, // enable auto configuration of networkID == chainID | |||
TxLookupLimit: 2350000, | |||
TransactionHistory: 2350000, | |||
LogHistory: 2350000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do go run github.com/fjl/gencodec -type Config -formats toml -out gen_config.go
This needs another rebase now. |
6470cea
to
16acc0b
Compare
@@ -334,6 +335,13 @@ func (f *FilterMaps) init() error { | |||
return batch.Write() | |||
} | |||
|
|||
// removeBloomBits removes old bloom bits data from the database. | |||
func (f *FilterMaps) removeBloomBits() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please relocate the database APIs into the core/rawdb
package
16acc0b
to
1e99c6e
Compare
1c2cae9
to
d7770b3
Compare
… error
I added two trivial fixes to this PR that I think should definitely go into the release. |
This PR is #3 of a 3-part series that implements the new log index intended to replace core/bloombits.
Based on #31079 and #31080
Replaces #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.