From eda5bbbf1e30d2f06fbd5a53f2e125747580a241 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Wed, 9 Aug 2023 14:08:45 +0530 Subject: [PATCH] Turn off block prefetching --- .../config/watcher-sushiswap/sushi-info-watcher-test.toml | 2 +- app/data/config/watcher-sushiswap/sushi-info-watcher.toml | 2 +- app/data/config/watcher-sushiswap/sushi-watcher.toml | 2 +- app/data/container-build/cerc-watcher-sushiswap/Dockerfile | 3 +-- app/data/stacks/sushiswap/README.md | 4 +--- app/data/stacks/sushiswap/stack.yml | 6 +++--- 6 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/data/config/watcher-sushiswap/sushi-info-watcher-test.toml b/app/data/config/watcher-sushiswap/sushi-info-watcher-test.toml index e8f2d935..e7a60881 100644 --- a/app/data/config/watcher-sushiswap/sushi-info-watcher-test.toml +++ b/app/data/config/watcher-sushiswap/sushi-info-watcher-test.toml @@ -41,5 +41,5 @@ eventsInBatch = 50 subgraphEventsOrder = true blockDelayInMilliSecs = 2000 - prefetchBlocksInMem = true + prefetchBlocksInMem = false prefetchBlockCount = 10 diff --git a/app/data/config/watcher-sushiswap/sushi-info-watcher.toml b/app/data/config/watcher-sushiswap/sushi-info-watcher.toml index 2772a872..b7dfd933 100644 --- a/app/data/config/watcher-sushiswap/sushi-info-watcher.toml +++ b/app/data/config/watcher-sushiswap/sushi-info-watcher.toml @@ -86,5 +86,5 @@ eventsInBatch = 50 subgraphEventsOrder = true blockDelayInMilliSecs = 2000 - prefetchBlocksInMem = true + prefetchBlocksInMem = false prefetchBlockCount = 10 diff --git a/app/data/config/watcher-sushiswap/sushi-watcher.toml b/app/data/config/watcher-sushiswap/sushi-watcher.toml index d8dfa594..6e02ba62 100644 --- a/app/data/config/watcher-sushiswap/sushi-watcher.toml +++ b/app/data/config/watcher-sushiswap/sushi-watcher.toml @@ -37,5 +37,5 @@ eventsInBatch = 50 lazyUpdateBlockProgress = true blockDelayInMilliSecs = 2000 - prefetchBlocksInMem = true + prefetchBlocksInMem = false prefetchBlockCount = 10 diff --git a/app/data/container-build/cerc-watcher-sushiswap/Dockerfile b/app/data/container-build/cerc-watcher-sushiswap/Dockerfile index 4c2eb15f..5b890437 100644 --- a/app/data/container-build/cerc-watcher-sushiswap/Dockerfile +++ b/app/data/container-build/cerc-watcher-sushiswap/Dockerfile @@ -7,5 +7,4 @@ WORKDIR /app COPY . . RUN echo "Building uniswap-watcher-ts" && \ - git checkout sushiswap && \ - yarn && yarn build && yarn build:contracts + yarn && yarn build && yarn build:contracts diff --git a/app/data/stacks/sushiswap/README.md b/app/data/stacks/sushiswap/README.md index 1a636135..50450613 100644 --- a/app/data/stacks/sushiswap/README.md +++ b/app/data/stacks/sushiswap/README.md @@ -5,9 +5,7 @@ Clone required repositories: ```bash -laconic-so --stack sushiswap setup-repositories - -# If this throws an error as a result of being already checked out to a branch/tag in a repo, remove the conflicting repositories and re-run the command +laconic-so --stack sushiswap setup-repositories --git-ssh ``` Build the container images: diff --git a/app/data/stacks/sushiswap/stack.yml b/app/data/stacks/sushiswap/stack.yml index 44969e3a..78c6a07e 100644 --- a/app/data/stacks/sushiswap/stack.yml +++ b/app/data/stacks/sushiswap/stack.yml @@ -5,9 +5,9 @@ repos: ## fixturenet-lotus repo - github.com/filecoin-project/lotus ## sushiswap repos - - github.com/cerc-io/sushiswap-v3-core - - github.com/cerc-io/sushiswap-v3-periphery - - github.com/vulcanize/uniswap-watcher-ts + - github.com/cerc-io/sushiswap-v3-core@watcher-ts + - github.com/cerc-io/sushiswap-v3-periphery@watcher-ts + - github.com/vulcanize/uniswap-watcher-ts@sushiswap - github.com/vulcanize/uniswap-v3-info containers: ## fixturenet-lotus image