mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 12:56:20 +00:00
861420a10f
* Add a flag to enable state creation * Update flag in mock config for testing
64 lines
1.5 KiB
TOML
64 lines
1.5 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3012
|
|
kind = "active"
|
|
|
|
# Checkpointing state.
|
|
checkpointing = true
|
|
|
|
# Checkpoint interval in number of blocks.
|
|
checkpointInterval = 2000
|
|
|
|
subgraphPath = "../graph-node/test/subgraph/eden"
|
|
|
|
# Enable state creation
|
|
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
|
enableState = true
|
|
|
|
# Interval to restart wasm instance periodically
|
|
wasmRestartBlocksInterval = 20
|
|
|
|
# Boolean to filter logs by contract.
|
|
filterLogs = true
|
|
|
|
# Max block range for which to return events in eventsInRange GQL query.
|
|
# Use -1 for skipping check on block range.
|
|
maxEventsBlockRange = 1000
|
|
|
|
# Interval in number of blocks at which to clear entities cache.
|
|
clearEntitiesCacheInterval = 1000
|
|
|
|
[metrics]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
[metrics.gql]
|
|
port = 9001
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "eden-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8083/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8082"
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/eden-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|
|
blockDelayInMilliSecs = 2000
|
|
prefetchBlocksInMem = true
|
|
prefetchBlockCount = 10 |