Skip to content

Commit

Permalink
update doge indexer healthcheck-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivanov N committed Nov 15, 2024
1 parent f986b0d commit bc08da3
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 bc08da3

Please sign in to comment.