From bc08da38ec4c9688d2c5e9a805d18c00c74493c1 Mon Sep 17 00:00:00 2001 From: Ivanov N Date: Fri, 15 Nov 2024 11:59:25 +0300 Subject: [PATCH] update doge indexer healthcheck-endpoint --- src/lib/nodes/doge-indexer/DogeIndexer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/nodes/doge-indexer/DogeIndexer.ts b/src/lib/nodes/doge-indexer/DogeIndexer.ts index 6dc403ec4..212758b6e 100644 --- a/src/lib/nodes/doge-indexer/DogeIndexer.ts +++ b/src/lib/nodes/doge-indexer/DogeIndexer.ts @@ -19,8 +19,8 @@ export class DogeIndexer extends Node { protected async checkHealth() { const time = Date.now() const height = await this.client - .get('/api/blocks?limit=0') - .then((res) => res.data.blocks[0].height) + .get('/api/status') + .then((res) => res.data.info.blocks) return { height,