Skip to content

Commit

Permalink
Add 'disable-bloom' bool flag for rollback utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeskov committed Aug 12, 2024
1 parent 1d8943d commit 2df3d3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/rollback/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func main() {
"Note that state must be re-imported in case it wasn't imported with similar flag set")
buildStateHashes = flag.Bool("build-state-hashes", false,
"Calculate and store state hashes for each block height.")
cfgPath = flag.String("cfg-path", "", "Path to configuration JSON file, only for custom blockchain.")
cfgPath = flag.String("cfg-path", "", "Path to configuration JSON file, only for custom blockchain.")
disableBloomFilter = flag.Bool("disable-bloom", false, "Disable bloom filter for state.")
)

flag.Parse()
Expand Down Expand Up @@ -72,6 +73,7 @@ func main() {

params := state.DefaultStateParams()
params.StorageParams.DbParams.OpenFilesCacheCapacity = int(maxFDs - 10)
params.DbParams.BloomFilterParams.Disable = *disableBloomFilter
params.BuildStateHashes = *buildStateHashes
params.StoreExtendedApiData = *buildExtendedAPI

Expand Down

0 comments on commit 2df3d3e

Please sign in to comment.