-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig.toml
More file actions
63 lines (54 loc) · 1.48 KB
/
config.toml
File metadata and controls
63 lines (54 loc) · 1.48 KB
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
# This file serves as a template for the configuration file. Copy it and edit the values as needed.
# Use --config parameter to specify the path to the configuration file.
[db]
host = "localhost"
port = 3306
database = "flare_indexer"
username = "indexeruser"
password = "P.a.s.s.W.O.R.D"
log_queries = false
[logger]
level = "INFO"
file = "./logs/flare-indexer.log"
console = true
[metrics]
# used for prometheus metrics of the indexer
# currently, no specific data are included in the metrics in addition to the default ones
prometheus_address = "localhost:2112"
[chain]
node_url = "http://localhost:9650/"
address_hrp = "localflare"
chain_id = 162
# eth_rpc_url is needed for services
eth_rpc_url = "http://localhost:9650/ext/bc/C/rpc"
# api key may be needed for access to production nodes
api_key = ""
# private_key_file is needed for mirroring client
private_key_file = "path/to/private/key/file"
[x_chain_indexer]
enabled = false
timeout = "10s"
start_index = 5
batch_size = 10
[p_chain_indexer]
enabled = true
timeout = "10s"
start_index = 0
batch_size = 10
[uptime_cronjob]
enabled = false
timeout = "10s"
enable_voting = false
# start of the uptime voting epoch
start = "2021-08-01T00:00:00Z"
period = "90s"
uptime_threshold = 0.8
delete_old_uptimes_epoch_threshold = 5
[mirroring_cronjob]
enabled = false
timeout = "10s"
# first epoch to be voted for (do not leave this empty since the first epoch is well back in time)
first = 1111
[contract_addresses]
mirroring = "0x0000000"
voting = "0x0000000"