Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Aug 17, 2024
1 parent d0befeb commit 930ba13
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/api/vts/health.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export default defineEventHandler(async (event) => {
.then((row) => row?.epoch ?? -1);
console.log('Latest Activity Block:', latestActivityBlock)

const { data: latestFetchedEpoch, error: errorLatestFetchedEpoch } = await rpcClient.policy.getEpochAt(latestActivityBlock)
if (errorLatestFetchedEpoch)
throw errorLatestFetchedEpoch;
console.log('Latest Fetched Epoch:', latestFetchedEpoch)
// const { data: latestFetchedEpoch, error: errorLatestFetchedEpoch } = await rpcClient.policy.getEpochAt(latestActivityBlock)
// if (errorLatestFetchedEpoch)
// throw errorLatestFetchedEpoch;
// console.log('Latest Fetched Epoch:', latestFetchedEpoch)
const latestFetchedEpoch = latestActivityBlock

// Get the total number of validators
const totalValidators = await useDrizzle()
Expand Down

0 comments on commit 930ba13

Please sign in to comment.