Skip to content

Commit

Permalink
fix: update fetchNodeStats API endpoint to use new JSON data source
Browse files Browse the repository at this point in the history
  • Loading branch information
rhochmayr committed Oct 25, 2024
1 parent 1326d73 commit 8001ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function fetchNodeMetrics(): Promise<Record<string, NodeMetrics>> {

export async function fetchNodeStats(): Promise<Record<string, NodeStats>> {
try {
const response = await fetch('https://api-testnet.lilypad.tech/metrics-dashboard/leaderboard');
const response = await fetch('https://jsondatapoint.blob.core.windows.net/jsondata/nodestats.json');
const data = await response.json();

return data.reduce((acc: Record<string, NodeStats>, node: any) => {
Expand Down

0 comments on commit 8001ae3

Please sign in to comment.