mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-15 23:38:19 +00:00
e3: tmpdir (#729)
This commit is contained in:
parent
bfd3996fa4
commit
19804fd971
@ -485,7 +485,7 @@ func (a *Aggregator22) integrateFiles(sf Agg22StaticFiles, txNumFrom, txNumTo ui
|
||||
}
|
||||
|
||||
func (a *Aggregator22) Unwind(ctx context.Context, txUnwindTo uint64, stateLoad etl.LoadFunc) error {
|
||||
stateChanges := etl.NewCollector(a.logPrefix, "", etl.NewOldestEntryBuffer(etl.BufferOptimalSize))
|
||||
stateChanges := etl.NewCollector(a.logPrefix, a.tmpdir, etl.NewOldestEntryBuffer(etl.BufferOptimalSize))
|
||||
defer stateChanges.Close()
|
||||
if err := a.accounts.pruneF(txUnwindTo, math2.MaxUint64, func(_ uint64, k, v []byte) error {
|
||||
return stateChanges.Collect(k, v)
|
||||
|
Loading…
Reference in New Issue
Block a user