Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Oct 16, 2024
1 parent 71f0325 commit f8e10b7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {BeaconChain} from "../../../../src/chain/index.js";
import {BlockType, produceBlockBody} from "../../../../src/chain/produceBlock/produceBlockBody.js";
import {Eth1ForBlockProductionDisabled} from "../../../../src/eth1/index.js";
import {ExecutionEngineDisabled} from "../../../../src/execution/engine/index.js";
import {BeaconDb} from "../../../../src/index.js";
import {ArchiveMode, BeaconDb} from "../../../../src/index.js";
import {testLogger} from "../../../utils/logger.js";

const logger = testLogger();
Expand All @@ -36,6 +36,7 @@ describe("produceBlockBody", () => {
skipCreateStateCacheIfAvailable: true,
archiveStateEpochFrequency: 1024,
minSameMessageSignatureSetsToBatch: 32,
archiveMode: ArchiveMode.Full,
},
{
config: state.config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {ExecutionEngineDisabled} from "../../../src/execution/engine/index.js";
import {Eth1ForBlockProductionDisabled} from "../../../src/eth1/index.js";
import {testLogger} from "../../utils/logger.js";
import {linspace} from "../../../src/util/numpy.js";
import {BeaconDb} from "../../../src/index.js";
import {ArchiveMode, BeaconDb} from "../../../src/index.js";
import {getBlockInput, AttestationImportOpt, BlockSource} from "../../../src/chain/blocks/types.js";

// Define this params in `packages/state-transition/test/perf/params.ts`
Expand Down Expand Up @@ -85,6 +85,7 @@ describe.skip("verify+import blocks - range sync perf test", () => {
skipCreateStateCacheIfAvailable: true,
archiveStateEpochFrequency: 1024,
minSameMessageSignatureSetsToBatch: 32,
archiveMode: ArchiveMode.Full,
},
{
config: state.config,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {describe, it, expect} from "vitest";
import {computeStartSlotAtEpoch} from "@lodestar/state-transition";
import {computeStateSlotsToDelete} from "../../../../src/chain/archiver/archiveStates.js";
import {computeStateSlotsToDelete} from "../../../../src/chain/archiver/strategies/fullStateArchiveStrategy.js";

describe("state archiver task", () => {
describe("computeStateSlotsToDelete", () => {
Expand Down
2 changes: 2 additions & 0 deletions packages/beacon-node/test/utils/networkWithMockDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {createCachedBeaconStateTest} from "./cachedBeaconState.js";
import {ClockStatic} from "./clock.js";
import {testLogger} from "./logger.js";
import {generateState} from "./state.js";
import {ArchiveMode} from "../../src/index.js";

export type NetworkForTestOpts = {
startSlot?: number;
Expand Down Expand Up @@ -54,6 +55,7 @@ export async function getNetworkForTest(
disableLightClientServerOnImportBlockHead: true,
disablePrepareNextSlot: true,
minSameMessageSignatureSetsToBatch: 32,
archiveMode: ArchiveMode.Full,
},
{
config: beaconConfig,
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/test/unit/options/beaconNodeOptions.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "node:fs";
import {describe, it, expect} from "vitest";
import {IBeaconNodeOptions} from "@lodestar/beacon-node";
import {ArchiveMode, IBeaconNodeOptions} from "@lodestar/beacon-node";
import {RecursivePartial} from "@lodestar/utils";
import {parseBeaconNodeArgs, BeaconNodeArgs} from "../../../src/options/beaconNodeOptions/index.js";
import {getTestdirPath} from "../../utils.js";
Expand Down Expand Up @@ -43,6 +43,7 @@ describe("options / beaconNodeOptions", () => {
"chain.nHistoricalStatesFileDataStore": true,
"chain.maxBlockStates": 100,
"chain.maxCPStateEpochsInMemory": 100,
"chain.archiveMode": ArchiveMode.Full,
emitPayloadAttributes: false,

eth1: true,
Expand Down

0 comments on commit f8e10b7

Please sign in to comment.