Skip to content

Commit

Permalink
Merge pull request #27 from lidofinance/Sven-NOM-patch-1
Browse files Browse the repository at this point in the history
Added a check to skip validator status checking on BN
  • Loading branch information
avsetsin authored May 16, 2024
2 parents eb09405 + a222d8d commit 4a469fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions programs/exit-bus/exit-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const fetchLastExitRequestsDetailed = async (forBlocks = 7200) => {
// fetch exit requests from events on EL
const requests = await fetchLastExitRequests(forBlocks, Number(blockNumber));

// skip validator status check if there are no exit requests
if (requests.length === 0) {
return [];
}

// fetch validator from CL
const validators = await fetchAllValidators(Number(slot));
const validatorsMap = getValidatorsMap(validators);
Expand Down

0 comments on commit 4a469fd

Please sign in to comment.