From 04fd82f13686af6d8cc00d7371caf330c8768a1f Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Fri, 27 Sep 2024 14:51:00 +0200 Subject: [PATCH] Fetch first block proposals --- .../trackValidatorsPerformance/trackValidatorsPerformance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts b/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts index 23e81ad9..4ff7f5ce 100644 --- a/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts +++ b/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts @@ -96,13 +96,13 @@ export async function fetchAndInsertPerformanceCron({ if (is_syncing) throw new NodeSyncingError("Node is syncing"); if (el_offline) throw new ExecutionOfflineError("Execution layer is offline"); - validatorsAttestationsTotalRewards = await getAttestationsTotalRewards({ + validatorBlockStatusMap = await getBlockProposalStatusMap({ beaconchainApi, epoch: currentEpoch.toString(), activeValidatorsIndexes }); - validatorBlockStatusMap = await getBlockProposalStatusMap({ + validatorsAttestationsTotalRewards = await getAttestationsTotalRewards({ beaconchainApi, epoch: currentEpoch.toString(), activeValidatorsIndexes