Skip to content

Commit

Permalink
fix spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Sep 17, 2024
1 parent aa5944d commit 9e5adb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/light-client/src/spec/validateLightClientUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
NEXT_SYNC_COMMITTEE_DEPTH_ELECTRA,
NEXT_SYNC_COMMITTEE_INDEX_ELECTRA,
NEXT_SYNC_COMMITTEE_INDEX,
FINALIZED_ROOT_DEPTH_ELECTRA,
FINALIZED_ROOT_INDEX_ELECTRA,
} from "@lodestar/params";
import {getParticipantPubkeys, sumBits} from "../utils/utils.js";
import {isValidMerkleBranch} from "../utils/index.js";
Expand Down Expand Up @@ -80,8 +82,8 @@ export function validateLightClientUpdate(
!isValidMerkleBranch(
finalizedRoot,
update.finalityBranch,
FINALIZED_ROOT_DEPTH,
FINALIZED_ROOT_INDEX,
isElectraLightClientUpdate(update) ? FINALIZED_ROOT_DEPTH_ELECTRA : FINALIZED_ROOT_DEPTH,
isElectraLightClientUpdate(update) ? FINALIZED_ROOT_INDEX_ELECTRA : FINALIZED_ROOT_INDEX,
update.attestedHeader.beacon.stateRoot
)
) {
Expand Down

0 comments on commit 9e5adb6

Please sign in to comment.