From 2131db4fd7a09d10dcc0c482c12bf45178e42bd1 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 13 Mar 2025 13:07:39 +0100 Subject: [PATCH] core/filtermaps: rename NoHistory -> Disabled --- core/filtermaps/filtermaps.go | 6 +++--- core/filtermaps/indexer_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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