From 29773bd69968d12efe9376986dc69fd35e7378d8 Mon Sep 17 00:00:00 2001 From: aodhgan Date: Wed, 9 Jul 2025 11:37:41 -0700 Subject: [PATCH 1/3] rm replica url --- .github/workflows/deploy-staging-submitter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging-submitter.yml b/.github/workflows/deploy-staging-submitter.yml index 2825461f4d..99ce0b44bf 100644 --- a/.github/workflows/deploy-staging-submitter.yml +++ b/.github/workflows/deploy-staging-submitter.yml @@ -60,7 +60,7 @@ jobs: DATABASE_URL=/home/staging_submitter/db.sqlite CHAIN_ID=216 NODE_ENV=staging - RPC_URLS=ws://localhost:8546,http://localhost:8545,wss://rpc.testnet.happy.tech/ws,https://rpc.testnet.happy.tech/http + RPC_URLS=wss://rpc.testnet.happy.tech/ws,https://rpc.testnet.happy.tech/http USE_STAGING_CONTRACTS=true TRACES_ENDPOINT=http://localhost:4318/v1/traces PROMETHEUS_PORT=9091 From e0b9096a6001f413c376a1b6c9e776a1230ae1dd Mon Sep 17 00:00:00 2001 From: aodhgan Date: Wed, 9 Jul 2025 11:41:36 -0700 Subject: [PATCH 2/3] rm from prod too [skip ci] --- .github/workflows/deploy-submitter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-submitter.yml b/.github/workflows/deploy-submitter.yml index b40e667f8d..9e5fa4057f 100644 --- a/.github/workflows/deploy-submitter.yml +++ b/.github/workflows/deploy-submitter.yml @@ -60,7 +60,7 @@ jobs: DATABASE_URL=/home/submitter/db.sqlite CHAIN_ID=216 NODE_ENV=production - RPC_URLS=ws://localhost:8546,http://localhost:8545,wss://rpc.testnet.happy.tech/ws,https://rpc.testnet.happy.tech/http + RPC_URLS=wss://rpc.testnet.happy.tech/ws,https://rpc.testnet.happy.tech/http TRACES_ENDPOINT=http://localhost:4318/v1/traces PROMETHEUS_PORT=9092 LOG_COLORS=false From efdba745d0041e142c945b0d4580bc38efe8bea5 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Norswap\" Laurent" Date: Mon, 21 Jul 2025 23:33:30 +0200 Subject: [PATCH 3/3] fix operator precedence [skip ci] --- apps/submitter/lib/services/BlockService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/submitter/lib/services/BlockService.ts b/apps/submitter/lib/services/BlockService.ts index 8082ac0160..96a41fc6db 100644 --- a/apps/submitter/lib/services/BlockService.ts +++ b/apps/submitter/lib/services/BlockService.ts @@ -520,7 +520,7 @@ export class BlockService { // Use a Mutex to avoid backfilling the same range many times. return this.#backfillMutex.locked(async () => { // It's possible all or part of the range was backfilled while we were waiting. - if (this.#current?.number ?? 0n > from) from = this.#current!.number + if ((this.#current?.number ?? 0n) > from) from = this.#current!.number if (from >= to) return true blockLogger.info(`Backfilling blocks in [${from}, ${to}] (inclusive).`)