Skip to content

Commit

Permalink
take replaceKeysInValues out of agg (#13444)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 authored Jan 16, 2025
1 parent 7d45852 commit 009d5da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions erigon-lib/state/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions erigon-lib/state/aggregator2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 009d5da

Please sign in to comment.