github.com/iotexproject/iotex-core@v1.14.1-rc1/blockindex/config.go (about) 1 // Copyright (c) 2022 IoTeX Foundation 2 // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability 3 // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed. 4 // This source code is governed by Apache License 2.0 that can be found in the LICENSE file. 5 6 package blockindex 7 8 // Config is the config for indexer 9 type Config struct { 10 // RangeBloomFilterNumElements is the number of elements each rangeBloomfilter will store in bloomfilterIndexer 11 RangeBloomFilterNumElements uint64 `yaml:"rangeBloomFilterNumElements"` 12 // RangeBloomFilterSize is the size (in bits) of rangeBloomfilter 13 RangeBloomFilterSize uint64 `yaml:"rangeBloomFilterSize"` 14 // RangeBloomFilterNumHash is the number of hash functions of rangeBloomfilter 15 RangeBloomFilterNumHash uint64 `yaml:"rangeBloomFilterNumHash"` 16 } 17 18 // DefaultConfig is the default config of indexer 19 var DefaultConfig = Config{ 20 RangeBloomFilterNumElements: 100000, 21 RangeBloomFilterSize: 1200000, 22 RangeBloomFilterNumHash: 8, 23 }