diff --git a/erigon-lib/state/aggregator.go b/erigon-lib/state/aggregator.go index 6e7a6fec924..fe979c69992 100644 --- a/erigon-lib/state/aggregator.go +++ b/erigon-lib/state/aggregator.go @@ -1241,7 +1241,7 @@ type RangesV3 struct { func (r RangesV3) String() string { ss := []string{} - for _, d := range r.domain { + for _, d := range &r.domain { if d.any() { ss = append(ss, fmt.Sprintf("%s(%s)", d.name, d.String())) } @@ -1257,7 +1257,7 @@ func (r RangesV3) String() string { } func (r RangesV3) any() bool { - for _, d := range r.domain { + for _, d := range &r.domain { if d.any() { return true } @@ -1292,7 +1292,7 @@ func (ac *AggregatorRoTx) findMergeRange(maxEndTxNum, maxSpan uint64) *RangesV3 cr := r.domain[kv.CommitmentDomain] restorePrevRange := false - for k, dr := range r.domain { + for k, dr := range &r.domain { kd := kv.Domain(k) if kd == kv.CommitmentDomain || cr.values.Equal(&dr.values) { continue