You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
api_key = ""# API key (in case the node is protected by API key), adds ?x-apikey=... to all requests if not empty, env API_KEY
69
+
private_key = ""# private key in hex (deprecated, use private_key_file instead), env PRIVATE_KEY
70
+
private_key_file = "../credentials/pk.txt"# file containing the private key of an account (for voting and mirroring clients), in hex, env PRIVATE_KEY_FILE
70
71
71
72
[p_chain_indexer]
72
73
enabled = true# enable p-chain indexing
@@ -78,20 +79,21 @@ start_index = 0 # start indexing at this block height
78
79
enabled = false# enable uptime monitoring cronjob
79
80
timeout = "10s"# call uptime service on every ...
80
81
enable_voting = true# enable voting for connected validators
81
-
start = "2021-08-01T00:00:00Z"# start of the uptime voting epoch, supports also unix timestamp as a number
82
-
period = "90s"# length of the epoch
82
+
start = "2021-08-01T00:00:00Z"# start of the uptime voting epoch, supports also unix timestamp as a number, env UPTIME_EPOCH_START
83
+
period = "90s"# length of the epoch, env UPTIME_EPOCH_PERIOD
84
+
first = 0# first epoch number, env UPTIME_EPOCH_FIRST
83
85
delay = "10"# min delay in seconds to send the vote after the epoch ends
84
86
uptime_threshold = 0.8# minimum uptime ratio in the epoch for a validator to be considered connected
85
87
delete_old_uptimes_epoch_threshold = 5# delete uptimes older than this epoch
86
88
87
89
[voting_cronjob]
88
90
enabled = false# enable voting client
89
91
timeout = "10s"# check for new epochs every ...
90
-
first = 12345# first epoch to vote for
92
+
first = 12345# first epoch to vote for, env EPOCH_FIRST
91
93
delay = "10s"# min delay in seconds to send the vote after the epoch ends
92
94
93
95
[voting_cronjob.gas]
94
-
gas_limit = 120000# Gas limit to set for the transaction execution (empty = estimate)
96
+
gas_limit = 120000# Gas limit to set for the transaction execution (0 = estimate), env VOTING_GAS_LIMIT
95
97
96
98
# type 0 transaction options
97
99
# gas_price = ... # Create type 0 transaction: gas price to use for the transaction execution (empty = gas price oracle)
@@ -107,14 +109,16 @@ first = 12345 # first epoch to mirror
107
109
delay = "10s"# min delay in seconds to send the vote after the epoch ends
**Note:** Environment variables always override values set in the TOML config file.
121
+
118
122
### Deployment configuration
119
123
120
124
Configuration files for deployment of the voting client can be found in [docker/indexer/config_flare_voting.toml](docker/indexer/config_flare_voting.toml) (for mainnet) and [docker/indexer/config_costwo_voting.toml](docker/indexer/config_costwo_voting.toml) (for coston2). Note that database credentials and chain addresses are not included in the config files. You can use these files as a template of your own config files or use the corresponding environment variables to override the given values.
0 commit comments