diff --git a/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts b/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts index 94c9aea62814..3afea044deae 100644 --- a/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts +++ b/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts @@ -109,7 +109,7 @@ export class WorkerNetworkCore implements INetworkCore { const worker = new Worker("./networkCoreWorker.js", { workerData, - /** + /** * maxYoungGenerationSizeMb defaults to 152mb through the cli option defaults. * That default value was determined via https://github.com/ChainSafe/lodestar/issues/2115 and * should be tuned further as needed. If we update network code and see substantial @@ -119,7 +119,7 @@ export class WorkerNetworkCore implements INetworkCore { * number causes detrimental slowdown from increased variable lookup time. Empirical evidence * showed that there is a pretty big window of "correct" values but we can always tune as * necessary - */ + */ resourceLimits: {maxYoungGenerationSizeMb: opts.maxYoungGenerationSizeMb}, } as ConstructorParameters[1]); diff --git a/packages/cli/src/options/beaconNodeOptions/network.ts b/packages/cli/src/options/beaconNodeOptions/network.ts index 2c1e47511683..745308ec7c8c 100644 --- a/packages/cli/src/options/beaconNodeOptions/network.ts +++ b/packages/cli/src/options/beaconNodeOptions/network.ts @@ -393,6 +393,6 @@ export const options: CliCommandOptions = { hidden: true, group: "network", description: "Max size of young generation in megabytes. Defaults to 152mb", - defaultDescription: String(defaultOptions.network.maxYoungGenerationSizeMb) + defaultDescription: String(defaultOptions.network.maxYoungGenerationSizeMb), }, }; diff --git a/packages/cli/test/unit/options/beaconNodeOptions.test.ts b/packages/cli/test/unit/options/beaconNodeOptions.test.ts index aed2e3191bc7..b0f0254443dc 100644 --- a/packages/cli/test/unit/options/beaconNodeOptions.test.ts +++ b/packages/cli/test/unit/options/beaconNodeOptions.test.ts @@ -200,7 +200,7 @@ describe("options / beaconNodeOptions", () => { rateLimitMultiplier: 1, maxGossipTopicConcurrency: 64, useWorker: true, - maxYoungGenerationSizeMb: 152 + maxYoungGenerationSizeMb: 152, }, sync: { isSingleNode: true,