From 590edef016a159f07d77dbf5e92519e9b5fd7102 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 20 Mar 2024 18:18:41 +0700 Subject: [PATCH] chore: address PR comments --- packages/beacon-node/src/chain/forkChoice/index.ts | 4 ++-- .../test/e2e/chain/stateCache/nHistoricalStates.test.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/beacon-node/src/chain/forkChoice/index.ts b/packages/beacon-node/src/chain/forkChoice/index.ts index b032159f2119..da50dd1f48ad 100644 --- a/packages/beacon-node/src/chain/forkChoice/index.ts +++ b/packages/beacon-node/src/chain/forkChoice/index.ts @@ -7,7 +7,7 @@ import { ForkChoiceStore, ExecutionStatus, JustifiedBalancesGetter, - ForkChoiceOpts as RealForkChoiceOpts, + ForkChoiceOpts as RawForkChoiceOpts, } from "@lodestar/fork-choice"; import { CachedBeaconStateAllForks, @@ -21,7 +21,7 @@ import {ChainEventEmitter} from "../emitter.js"; import {ChainEvent} from "../emitter.js"; import {GENESIS_SLOT} from "../../constants/index.js"; -export type ForkChoiceOpts = RealForkChoiceOpts & { +export type ForkChoiceOpts = RawForkChoiceOpts & { // for testing only forkchoiceConstructor?: typeof ForkChoice; }; diff --git a/packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts b/packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts index ac76d1e206f8..6d35329ba272 100644 --- a/packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts +++ b/packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts @@ -94,7 +94,7 @@ describe( skip: true, }, /** - * Block slot 28 has parent slot 23, block slot 824 25 26 and 27 are reorged + * Block slot 28 has parent slot 23, block slot 24 25 26 and 27 are reorged * --------------------------|--- * / | ^ ^ ^ ^ * / | 28 29 32 33 @@ -154,7 +154,7 @@ describe( skip: true, }, /** - * Block slot 28 has parent slot 23, block slot 824 25 26 and 27 are reorged + * Block slot 28 has parent slot 23, block slot 24 25 26 and 27 are reorged * --------------------------|--- * / | ^ ^ ^ ^ * / | 28 29 32 33 @@ -186,7 +186,7 @@ describe( skip: true, }, /** - * Block slot 28 has parent slot 23, block slot 824 25 26 and 27 are reorged + * Block slot 28 has parent slot 23, block slot 24 25 26 and 27 are reorged * --------------------------------|--- * / | ^ ^ ^ ^ * / | 28 29 32 33 @@ -218,7 +218,7 @@ describe( skip: true, }, /** - * Block slot 28 has parent slot 23, block slot 824 25 26 and 27 are reorged + * Block slot 28 has parent slot 23, block slot 24 25 26 and 27 are reorged * --------------------------------------------|--- * / | ^ ^ ^ ^ * / | 28 29 32 33