-
Notifications
You must be signed in to change notification settings - Fork 199
/
contextFlagsConfig.go
36 lines (34 loc) · 1.15 KB
/
contextFlagsConfig.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
32
33
34
35
36
package config
// ContextFlagsConfig will keep the values for the cli.Context flags
type ContextFlagsConfig struct {
WorkingDir string
EnableGops bool
SaveLogFile bool
EnableLogCorrelation bool
EnableLogName bool
LogLevel string
DisableAnsiColor bool
CleanupStorage bool
UseHealthService bool
SessionInfoFileOutput string
EnableTxIndexing bool
BootstrapRoundIndex uint64
RestApiInterface string
EnablePprof bool
UseLogView bool
ValidatorKeyIndex int
EnableRestAPIServerDebugMode bool
Version string
ForceStartFromNetwork bool
DisableConsensusWatchdog bool
SerializeSnapshots bool
}
// ImportDbConfig will hold the import-db parameters
type ImportDbConfig struct {
IsImportDBMode bool
ImportDBStartInEpoch uint32
ImportDBTargetShardID uint32
ImportDBWorkingDir string
ImportDbNoSigCheckFlag bool
ImportDbSaveTrieEpochRootHash bool
}