Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Dec 22, 2023
1 parent ad50d55 commit 63f20dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/beacon-node/src/chain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,8 @@ export class BeaconChain implements IBeaconChain {

// Set pivotValidatorIndex to 0 if `historicalValidatorLengths` does not
// contain validator length for cpEpoch to ensure `newFinalizedValidators` to be empty
const pivotValidatorIndex = headState.epochCtx.historicalValidatorLengths.get((headEpoch - cpEpoch + 1) * -1) ?? 0;
const pivotValidatorIndex =
headState.epochCtx.historicalValidatorLengths.get((headEpoch - cpEpoch + 1) * -1) ?? 0;

// Note EIP-6914 will break this logic
const newFinalizedValidators = headState.epochCtx.unfinalizedPubkey2index.filter(
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/test/sim/6110-interop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ describe("executionEngine / ExecutionEngineHttp", function () {
// Its historicalValidatorLengths should store lengths for epoch 3 and 4 hence size should be 2
console.log(`haha ${epochCtx.historicalValidatorLengths.size}`);
if (epochCtx.historicalValidatorLengths.size !== 2) {
throw Error("Historical validator lengths is not updated correctly")
throw Error("Historical validator lengths is not updated correctly");
}

if (headState.depositReceiptsStartIndex === UNSET_DEPOSIT_RECEIPTS_START_INDEX) {
Expand Down

0 comments on commit 63f20dd

Please sign in to comment.