-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
19 lines (19 loc) · 798 Bytes
/
config.py
File metadata and controls
19 lines (19 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
INFLUXDB_HOST = "localhost"
INFLUXDB_PORT = 8086
INFLUXDB_URL = f'http://{INFLUXDB_HOST}:{INFLUXDB_PORT}'
INFLUXDB_DATABASE = "ethonrpi"
INFLUXDB_USER = "geth"
INFLUXDB_PASSWORD = "geth"
RETENTION_POLICY = "autogen"
DEFAULT_DELAY_BOTH_ACTIVE = 7.0
DEFAULT_INFLUXDB_FLUSH_INTERVAL = int(1000.0 * (DEFAULT_DELAY_BOTH_ACTIVE + 0.05))
DEFAULT_INFLUXDB_BATCH_SIZE = 75
MAX_QUEUE_LEN = 200
DELAY_BETWEEN_STATE_SAVES = 10
SYNC_STAGES = {
"Looking for peers": [False, "looking_for_peers"],
"Syncing: chain download in progress": [False, "downloading_chain"],
"Syncing: state download in progress": [False, "downloading_state"],
"Syncing: state healing in progress": [False, "healing_state"],
"Generating snapshot": [False, "generating_state_snapshot", "Resuming snapshot generation"],
}