From 009d5daaa6cea0d75855e2d11368b97285f9708c Mon Sep 17 00:00:00 2001 From: sudeep Date: Thu, 16 Jan 2025 09:46:56 +0530 Subject: [PATCH] take replaceKeysInValues out of agg (#13444) --- erigon-lib/state/aggregator.go | 3 --- erigon-lib/state/aggregator2.go | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/erigon-lib/state/aggregator.go b/erigon-lib/state/aggregator.go index bb9a1958861..908c5a9e340 100644 --- a/erigon-lib/state/aggregator.go +++ b/erigon-lib/state/aggregator.go @@ -197,9 +197,6 @@ func (a *Aggregator) registerDomain(name kv.Domain, salt *uint32, dirs datadir.D cfg := Schema[name] //TODO: move dynamic part of config to InvertedIndex cfg.restrictSubsetFileDeletions = a.commitmentValuesTransform - if name == kv.CommitmentDomain { - cfg.replaceKeysInValues = a.commitmentValuesTransform - } cfg.hist.iiCfg.salt = salt cfg.hist.iiCfg.dirs = dirs cfg.hist.iiCfg.aggregationStep = aggregationStep diff --git a/erigon-lib/state/aggregator2.go b/erigon-lib/state/aggregator2.go index f98b0ec4d67..f5645ce2553 100644 --- a/erigon-lib/state/aggregator2.go +++ b/erigon-lib/state/aggregator2.go @@ -134,9 +134,10 @@ var Schema = map[kv.Domain]domainCfg{ kv.CommitmentDomain: { name: kv.CommitmentDomain, valuesTable: kv.TblCommitmentVals, - IndexList: AccessorHashMap, - Compression: seg.CompressKeys, - CompressCfg: DomainCompressCfg, + IndexList: AccessorHashMap, + Compression: seg.CompressKeys, + CompressCfg: DomainCompressCfg, + replaceKeysInValues: AggregatorSqueezeCommitmentValues, hist: histCfg{ valuesTable: kv.TblCommitmentHistoryVals,