forked from hyperledger/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
95 lines (65 loc) · 2.24 KB
/
config.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import os
import logging
from collections import OrderedDict
from plenum.common.constants import ClientBootStrategy, HS_ROCKSDB, HS_LEVELDB, KeyValueStorageType
from plenum.config import pool_transactions_file_base, domain_transactions_file_base
from indy_common.constants import Environment
nodeReg = OrderedDict([
('Alpha', ('127.0.0.1', 9701)),
('Beta', ('127.0.0.1', 9703)),
('Gamma', ('127.0.0.1', 9705)),
('Delta', ('127.0.0.1', 9707))
])
cliNodeReg = OrderedDict([
('AlphaC', ('127.0.0.1', 9702)),
('BetaC', ('127.0.0.1', 9704)),
('GammaC', ('127.0.0.1', 9706)),
('DeltaC', ('127.0.0.1', 9708))
])
GENERAL_CONFIG_DIR = '/etc/indy/'
CLI_BASE_DIR = '~/.indy-cli/'
CLI_NETWORK_DIR = os.path.join(CLI_BASE_DIR, 'networks')
GENERAL_CONFIG_FILE = 'indy_config.py'
NETWORK_CONFIG_FILE = 'indy_config.py'
USER_CONFIG_FILE = 'indy_config.py'
configTransactionsFile = "config_transactions"
logFilePath = "cli.log"
outFilePath = "cli_output.log"
clientBootStrategy = ClientBootStrategy.Custom
hashStore = {
"type": HS_ROCKSDB
}
primaryStorage = None
configStateStorage = KeyValueStorageType.Rocksdb
idrCacheStorage = KeyValueStorageType.Rocksdb
attrStorage = KeyValueStorageType.Rocksdb
configStateDbName = 'config_state'
attrDbName = 'attr_db'
idrCacheDbName = 'idr_cache_db'
PluginsToLoad = []
# TODO: This should be in indy_node's config
# File that stores the version of the Node ran the last time it started. (It
# might be incorrect sometimes if Node failed to update the file and crashed)
lastRunVersionFile = 'last_version'
# File that stores the version of the code to which the update has to be made.
# This is used to detect if there was an error while upgrading. Once it has
# been found out that there was error while upgrading, then it can be upgraded.
nextVersionFile = 'next_version'
# Minimum time difference (seconds) between the code update of 2 nodes
MinSepBetweenNodeUpgrades = 300
upgradeLogFile = "upgrade_log"
restartLogFile = "restart_log"
lastVersionFilePath = "last_version_file"
'''
Node control utils options
'''
controlServiceHost = "127.0.0.1"
controlServicePort = "30003"
'''
logging level for agents
'''
agentLoggingLevel = logging.INFO
'''
default logging level for node
'''
logLevel = logging.INFO