Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Jan 26, 2023
1 parent 8576d7f commit 901c142
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/beacon-node/test/utils/mocks/chain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {CheckpointBalancesCache} from "../../../../src/chain/balancesCache.js";
import {IChainOptions} from "../../../../src/chain/options.js";
import {BlockAttributes} from "../../../../src/chain/produceBlock/produceBlockBody.js";
import {ReqRespBlockResponse} from "../../../../src/network/index.js";
import {IBeaconDb} from "../../../../src/db/index.js";

/* eslint-disable @typescript-eslint/no-empty-function */

Expand All @@ -68,7 +67,6 @@ export class MockBeaconChain implements IBeaconChain {
safeSlotsToImportOptimistically: 0,
suggestedFeeRecipient: "0x0000000000000000000000000000000000000000",
};
readonly db: IBeaconDb;
readonly anchorStateLatestBlockSlot: Slot;

readonly bls: IBlsVerifier;
Expand Down Expand Up @@ -130,21 +128,21 @@ export class MockBeaconChain implements IBeaconChain {
this.forkChoice = mockForkChoice();
this.stateCache = new StateContextCache({});
this.checkpointStateCache = new CheckpointStateCache({});
this.db = new StubbedBeaconDb();
const db = new StubbedBeaconDb();
this.regen = new StateRegenerator({
config: this.config,
forkChoice: this.forkChoice,
stateCache: this.stateCache,
checkpointStateCache: this.checkpointStateCache,
db: this.db,
db,
metrics: null,
emitter: this.emitter,
});
this.lightClientServer = new LightClientServer(
{},
{
config: this.config,
db: this.db,
db,
metrics: null,
emitter: this.emitter,
logger: this.logger,
Expand Down

0 comments on commit 901c142

Please sign in to comment.