mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 12:56:20 +00:00
306bbb73ca
* Avoid refetching block while fetching events * Prefetch a batch of blocks with events while indexing * Update mock indexer used in graph-node testing * Process available blocks while prefetching * Refactor events fetching to a method in util * Move method to get GQL event query result to util
39 lines
801 B
TOML
39 lines
801 B
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3001
|
|
mode = "eth_call"
|
|
kind = "lazy"
|
|
|
|
[metrics]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "erc20-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8081"
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/erc20-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|
|
blockDelayInMilliSecs = 2000
|
|
prefetchBlocksInMem = true
|
|
prefetchBlockCount = 10
|