Skip to content

Commit

Permalink
Merge pull request #687 from Adamant-im/feat/update-doge-indexer-heal…
Browse files Browse the repository at this point in the history
…thcheck-endpoint

update doge indexer healthcheck-endpoint
  • Loading branch information
bludnic authored Nov 29, 2024
2 parents d58e314 + bc08da3 commit fab887c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/nodes/doge-indexer/DogeIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class DogeIndexer extends Node<AxiosInstance> {
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,
Expand Down

0 comments on commit fab887c

Please sign in to comment.