2023-01-05 12:45:09 +01:00
|
|
|
[metrics]
|
2023-01-11 10:29:16 +01:00
|
|
|
# Exposes Prometheus metrics
|
2023-01-06 12:32:20 +01:00
|
|
|
go_process = true
|
|
|
|
|
2023-01-11 09:13:59 +01:00
|
|
|
# API server
|
2023-03-08 15:30:40 +01:00
|
|
|
[service]
|
2023-01-11 10:29:16 +01:00
|
|
|
# Host and port
|
2023-03-08 15:30:40 +01:00
|
|
|
address = ":5000"
|
2023-01-05 12:45:09 +01:00
|
|
|
|
2023-01-11 09:13:59 +01:00
|
|
|
# Geth API endpoints
|
2023-01-05 12:45:09 +01:00
|
|
|
[chain]
|
2023-03-11 10:29:51 +01:00
|
|
|
graphql_endpoint = ""
|
|
|
|
ws_endpoint = ""
|
|
|
|
system_address = ""
|
|
|
|
token_index_address = ""
|
|
|
|
gas_faucet_address = ""
|
|
|
|
user_index_address = ""
|
2023-01-05 12:45:09 +01:00
|
|
|
|
2023-02-24 11:28:30 +01:00
|
|
|
# Syncer configs
|
2023-01-11 09:13:59 +01:00
|
|
|
[syncer]
|
2023-02-24 11:28:30 +01:00
|
|
|
# Maximum number of missing blocks pushed into the worker queue every janitor sweep
|
2023-03-08 15:30:40 +01:00
|
|
|
janitor_queue_size = 250
|
2023-02-24 11:28:30 +01:00
|
|
|
# Number of goroutines assigned to the worker pool
|
2023-03-08 15:30:40 +01:00
|
|
|
janitor_concurrency = 3
|
2023-01-11 09:13:59 +01:00
|
|
|
# Syncer start block
|
2023-03-08 15:30:40 +01:00
|
|
|
initial_lower_bound = ""
|
2023-02-24 11:28:30 +01:00
|
|
|
# Janitor sweep interval, should take into account concurrency and queue_size
|
2023-03-08 15:30:40 +01:00
|
|
|
janitor_sweep_interval = 10
|
2023-01-05 12:45:09 +01:00
|
|
|
|
|
|
|
[postgres]
|
2023-03-08 15:30:40 +01:00
|
|
|
dsn = ""
|
2023-01-14 11:17:34 +01:00
|
|
|
|
|
|
|
# https://docs.nats.io/
|
|
|
|
[jetstream]
|
2023-03-08 15:30:40 +01:00
|
|
|
endpoint = ""
|
2023-02-24 11:28:30 +01:00
|
|
|
# Duration JetStream should keep the message before GC
|
2023-03-08 15:30:40 +01:00
|
|
|
persist_duration_hrs = 48
|
2023-01-14 11:17:34 +01:00
|
|
|
# Duration to ignore duplicate transactions (e.g. due to restart)
|
2023-03-08 15:30:40 +01:00
|
|
|
dedup_duration_hrs = 6
|