mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 15:56:45 +01:00
Mohammed Sohail
df88d9df16
* update config to better defaults * add docs, inline and md * add context support throughout * replace json with goccy/go-json for better decoding of large JSON * update graphql fetcher: replace ioutil with io * test runner script (until CI is ready) * update CI build config
32 lines
925 B
TOML
32 lines
925 B
TOML
# Exposes Prometheus metrics
|
|
[metrics]
|
|
go_process = true
|
|
|
|
# API server
|
|
[api]
|
|
address = ":8080"
|
|
|
|
# Geth API endpoints
|
|
[chain]
|
|
graphql_endpoint = "https://rpc.celo.grassecon.net/graphql"
|
|
ws_endpoint = "wss://ws.celo.grassecon.net"
|
|
|
|
# Syncer configs
|
|
[syncer]
|
|
# Maximum number of missing blocks pushed into the worker queue every janitor sweep
|
|
batch_size = 200
|
|
# Number of goroutines assigned to the worker pool
|
|
concurrency = 3
|
|
# Prevents reprocessing head block already in queue
|
|
head_block_lag = 5
|
|
# Max idle time after which goroutine is returned back to the pool
|
|
idle_worker_timeout = 1
|
|
# Syncer start block
|
|
initial_lower_bound = 17034445
|
|
# Max blocks in worker queue awaiting processing
|
|
queue_size = 500
|
|
# Janitor sweep interval, should take into account concurrency and queue_size
|
|
sweep_interval = 10
|
|
|
|
[postgres]
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_chain_events" |