mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
e4: reset state
This commit is contained in:
parent
8395c39670
commit
94a3257ec7
@ -149,6 +149,7 @@ func ResetExec(ctx context.Context, db kv.RwDB, chain string, tmpDir string) (er
|
||||
historyV3 := kvcfg.HistoryV3.FromDB(db)
|
||||
if historyV3 {
|
||||
stateHistoryBuckets = append(stateHistoryBuckets, stateHistoryV3Buckets...)
|
||||
stateHistoryBuckets = append(stateHistoryBuckets, stateHistoryV4Buckets...)
|
||||
}
|
||||
|
||||
return db.Update(ctx, func(tx kv.RwTx) error {
|
||||
@ -225,6 +226,10 @@ var stateHistoryV3Buckets = []string{
|
||||
kv.TracesFromKeys, kv.TracesFromIdx,
|
||||
kv.TracesToKeys, kv.TracesToIdx,
|
||||
}
|
||||
var stateHistoryV4Buckets = []string{
|
||||
kv.AccountKeys, kv.StorageKeys, kv.CodeKeys,
|
||||
kv.CommitmentKeys, kv.CommitmentVals, kv.CommitmentHistoryKeys, kv.CommitmentHistoryVals, kv.CommitmentSettings, kv.CommitmentIdx,
|
||||
}
|
||||
|
||||
func WarmupTable(ctx context.Context, db kv.RoDB, bucket string, lvl log.Lvl) {
|
||||
const ThreadsLimit = 128
|
||||
|
Loading…
Reference in New Issue
Block a user