-
Notifications
You must be signed in to change notification settings - Fork 199
/
pruningStorerArgs.go
31 lines (28 loc) · 1015 Bytes
/
pruningStorerArgs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package pruning
import (
"github.com/ElrondNetwork/elrond-go/storage"
"github.com/ElrondNetwork/elrond-go/storage/clean"
"github.com/ElrondNetwork/elrond-go/storage/storageUnit"
)
// StorerArgs will hold the arguments needed for PruningStorer
type StorerArgs struct {
Identifier string
ShardCoordinator storage.ShardCoordinator
CacheConf storageUnit.CacheConfig
PathManager storage.PathManagerHandler
DbPath string
PersisterFactory DbFactoryHandler
Notifier EpochStartNotifier
OldDataCleanerProvider clean.OldDataCleanerProvider
MaxBatchSize int
NumOfEpochsToKeep uint32
NumOfActivePersisters uint32
StartingEpoch uint32
PruningEnabled bool
EnabledDbLookupExtensions bool
}
// FullHistoryStorerArgs will hold the arguments needed for full history PruningStorer
type FullHistoryStorerArgs struct {
*StorerArgs
NumOfOldActivePersisters uint32
}