diff --git a/core/filtermaps/filtermaps.go b/core/filtermaps/filtermaps.go index f1be3bfaac..b2b9e8aa45 100644 --- a/core/filtermaps/filtermaps.go +++ b/core/filtermaps/filtermaps.go @@ -168,8 +168,8 @@ type lastBlockOfMap struct { // Config contains the configuration options for NewFilterMaps. type Config struct { - History uint64 // number of historical blocks to index - NoHistory bool // disables indexing completely + History uint64 // number of historical blocks to index + Disabled bool // disables indexing completely // This option enables the checkpoint JSON file generator. // If set, the given file will be updated with checkpoint information. @@ -191,7 +191,7 @@ func NewFilterMaps(db ethdb.KeyValueStore, initView *ChainView, params Params, c finalBlockCh: make(chan uint64, 1), blockProcessingCh: make(chan bool, 1), history: config.History, - noHistory: config.NoHistory, + noHistory: config.Disabled, exportFileName: config.ExportFileName, Params: params, indexedRange: filterMapsRange{ diff --git a/core/filtermaps/indexer_test.go b/core/filtermaps/indexer_test.go index 0807e762ea..6411e2f807 100644 --- a/core/filtermaps/indexer_test.go +++ b/core/filtermaps/indexer_test.go @@ -232,8 +232,8 @@ func (ts *testSetup) setHistory(history uint64, noHistory bool) { head := ts.chain.CurrentBlock() view := NewChainView(ts.chain, head.Number.Uint64(), head.Hash()) config := Config{ - History: history, - NoHistory: noHistory, + History: history, + Disabled: noHistory, } ts.fm = NewFilterMaps(ts.db, view, ts.params, config) ts.fm.testDisableSnapshots = ts.testDisableSnapshots