-
Notifications
You must be signed in to change notification settings - Fork 197
/
constants.go
35 lines (24 loc) · 1.39 KB
/
constants.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
package storage
import (
"github.com/ElrondNetwork/elrond-go-storage/storageUnit"
)
// MaxRetriesToCreateDB represents the maximum number of times to try to create DB if it failed
const MaxRetriesToCreateDB = storageUnit.MaxRetriesToCreateDB
// SleepTimeBetweenCreateDBRetries represents the number of seconds to sleep between DB creates
const SleepTimeBetweenCreateDBRetries = storageUnit.SleepTimeBetweenCreateDBRetries
// PathShardPlaceholder represents the placeholder for the shard ID in paths
const PathShardPlaceholder = "[S]"
// PathEpochPlaceholder represents the placeholder for the epoch number in paths
const PathEpochPlaceholder = "[E]"
// PathIdentifierPlaceholder represents the placeholder for the identifier in paths
const PathIdentifierPlaceholder = "[I]"
// TxPoolNumTxsToPreemptivelyEvict instructs tx pool eviction algorithm to remove this many transactions when eviction takes place
const TxPoolNumTxsToPreemptivelyEvict = uint32(1000)
// DefaultDBPath is the default path for nodes databases
const DefaultDBPath = "db"
// DefaultEpochString is the default folder root name for node per epoch databases
const DefaultEpochString = "Epoch"
// DefaultStaticDbString is the default name for the static databases (not changing with epoch)
const DefaultStaticDbString = "Static"
// DefaultShardString is the default folder root name for per shard databases
const DefaultShardString = "Shard"