2023-01-11 09:13:59 +01:00
|
|
|
# Exposes Prometheus metrics
|
2023-01-05 12:45:09 +01:00
|
|
|
[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]
|
|
|
|
address = ":8080"
|
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-01-06 12:32:20 +01:00
|
|
|
graphql_endpoint = "https://rpc.celo.grassecon.net/graphql"
|
|
|
|
ws_endpoint = "wss://ws.celo.grassecon.net"
|
2023-01-05 12:45:09 +01:00
|
|
|
|
2023-01-11 09:13:59 +01:00
|
|
|
# Syncer configs
|
|
|
|
[syncer]
|
|
|
|
# Maximum number of missing blocks pushed into the worker queue every janitor sweep
|
2023-01-06 12:32:20 +01:00
|
|
|
batch_size = 200
|
2023-01-11 09:13:59 +01:00
|
|
|
# Number of goroutines assigned to the worker pool
|
2023-01-06 12:32:20 +01:00
|
|
|
concurrency = 3
|
2023-01-11 09:13:59 +01:00
|
|
|
# Prevents reprocessing head block already in queue
|
2023-01-06 12:32:20 +01:00
|
|
|
head_block_lag = 5
|
2023-01-11 09:13:59 +01:00
|
|
|
# Max idle time after which goroutine is returned back to the pool
|
2023-01-05 12:45:09 +01:00
|
|
|
idle_worker_timeout = 1
|
2023-01-11 09:13:59 +01:00
|
|
|
# Syncer start block
|
2023-01-06 12:32:20 +01:00
|
|
|
initial_lower_bound = 17034445
|
2023-01-11 09:13:59 +01:00
|
|
|
# Max blocks in worker queue awaiting processing
|
|
|
|
queue_size = 500
|
|
|
|
# Janitor sweep interval, should take into account concurrency and queue_size
|
2023-01-06 12:32:20 +01:00
|
|
|
sweep_interval = 10
|
2023-01-05 12:45:09 +01:00
|
|
|
|
|
|
|
[postgres]
|
|
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_chain_events"
|