From cecc6581b2c88c60c966cb820a18a9d5548ca630 Mon Sep 17 00:00:00 2001 From: Denis Carriere Date: Thu, 30 Nov 2023 22:32:30 -0500 Subject: [PATCH] pull chain from module_hashes instead of blocks --- src/clickhouse/stores.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clickhouse/stores.ts b/src/clickhouse/stores.ts index 343d6b0..38e9c41 100644 --- a/src/clickhouse/stores.ts +++ b/src/clickhouse/stores.ts @@ -12,7 +12,7 @@ class ClickhouseStore { public get chains() { if (!this.chainsPromise) { this.chainsPromise = readOnlyClient - .query({ query: "SELECT DISTINCT chain FROM blocks", format: "JSONEachRow" }) + .query({ query: "SELECT DISTINCT chain FROM module_hashes", format: "JSONEachRow" }) .then((response) => response.json>()) .then((chains) => chains.map(({ chain }) => chain)) .catch(() => []);