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-01-06 12:32:20 +01:00
|
|
|
[api]
|
2023-01-11 10:29:16 +01:00
|
|
|
# Host and port
|
2023-02-24 11:28:30 +01:00
|
|
|
address = ":8085"
|
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-02-24 11:28:30 +01:00
|
|
|
graphql_endpoint = "https://rpc.alfajores.celo.grassecon.net/graphql"
|
|
|
|
ws_endpoint = "wss://ws.alfajores.celo.grassecon.net"
|
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
|
|
|
|
janitor_queue_size = 500
|
|
|
|
# Number of goroutines assigned to the worker pool
|
2023-01-18 20:40:14 +01:00
|
|
|
janitor_concurrency = 5
|
2023-01-11 09:13:59 +01:00
|
|
|
# Syncer start block
|
2023-02-24 11:28:30 +01:00
|
|
|
initial_lower_bound = 16373156
|
|
|
|
# Janitor sweep interval, should take into account concurrency and queue_size
|
2023-01-18 20:40:14 +01:00
|
|
|
janitor_sweep_interval = 5
|
2023-01-05 12:45:09 +01:00
|
|
|
|
|
|
|
[postgres]
|
2023-01-14 11:17:34 +01:00
|
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_chain_events"
|
|
|
|
|
|
|
|
# https://docs.nats.io/
|
|
|
|
[jetstream]
|
|
|
|
endpoint = "nats://localhost:4222"
|
2023-02-24 11:28:30 +01:00
|
|
|
# Duration JetStream should keep the message before GC
|
2023-01-14 11:17:34 +01:00
|
|
|
persist_duration_hours = 48
|
|
|
|
# Duration to ignore duplicate transactions (e.g. due to restart)
|
|
|
|
dedup_duration_hours = 6
|