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-01-06 12:32:20 +01:00
|
|
|
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"
|
2023-01-18 20:40:14 +01:00
|
|
|
ws_endpoint = "wss://socket.celo.grassecon.net"
|
2023-01-05 12:45:09 +01:00
|
|
|
|
2023-01-11 09:13:59 +01:00
|
|
|
[syncer]
|
|
|
|
# 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
|
|
|
# Max idle time after which goroutine is returned back to the pool
|
2023-01-18 20:40:14 +01:00
|
|
|
idle_worker_timeout = 1
|
2023-01-11 09:13:59 +01:00
|
|
|
# Syncer start block
|
2023-01-18 20:40:14 +01:00
|
|
|
initial_lower_bound = 17269000
|
2023-01-11 09:13:59 +01:00
|
|
|
# Max blocks in worker queue awaiting processing
|
2023-01-18 20:40:14 +01:00
|
|
|
janitor_queue_size = 500
|
2023-01-11 09:13:59 +01:00
|
|
|
# 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"
|
|
|
|
stream_name = "CHAIN"
|
|
|
|
# Duration JetStream should keep the message before GC
|
|
|
|
persist_duration_hours = 48
|
|
|
|
# Duration to ignore duplicate transactions (e.g. due to restart)
|
|
|
|
dedup_duration_hours = 6
|
|
|
|
# Stream subjects
|
|
|
|
stream_subjects = [
|
|
|
|
"CHAIN.transfer",
|
|
|
|
"CHAIN.transferFrom",
|
|
|
|
"CHAIN.mintTo"
|
2023-01-18 20:40:14 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
# 77G - snapshot
|
|
|
|
# 111G - decompressed
|
|
|
|
# 112G - latest
|