Skip to content

Commit

Permalink
Merge 59f53dc into f66aae4
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Jul 15, 2024
2 parents f66aae4 + 59f53dc commit 72317f3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from "node:path";
import {getHeapStatistics} from "node:v8";
import {Registry} from "prom-client";
import {ErrorAborted} from "@lodestar/utils";
import {LevelDbController} from "@lodestar/db";
import {BeaconNode, BeaconDb} from "@lodestar/beacon-node";
Expand Down Expand Up @@ -61,13 +60,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void

if (ACTIVE_PRESET === PresetName.minimal) logger.info("ACTIVE_PRESET == minimal preset");

// additional metrics registries
const metricsRegistries: Registry[] = [];
let networkRegistry: Registry | undefined;
if (options.metrics.enabled) {
networkRegistry = new Registry();
metricsRegistries.push(networkRegistry);
}
const db = new BeaconDb(config, await LevelDbController.create(options.db, {metrics: null, logger}));
logger.info("Connected to LevelDB database", {path: options.db.name});

Expand All @@ -92,7 +84,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
peerStoreDir: beaconPaths.peerStoreDir,
anchorState,
wsCheckpoint,
metricsRegistries,
});

// dev debug option to have access to the BN instance
Expand Down

0 comments on commit 72317f3

Please sign in to comment.