From 3f3a207643f6c35ae4b3cfe683cd167cfe70a2c3 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Thu, 23 Nov 2023 14:28:28 +0100 Subject: [PATCH] fix: log useProduceBlockV3 default value instead of undefined (#6125) --- packages/validator/src/validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/validator/src/validator.ts b/packages/validator/src/validator.ts index 9cd5fda4ff3c..68ae2135b564 100644 --- a/packages/validator/src/validator.ts +++ b/packages/validator/src/validator.ts @@ -285,7 +285,7 @@ export class Validator { await assertEqualGenesis(opts, genesis); logger.info("Verified connected beacon node and validator have the same genesisValidatorRoot"); - const {useProduceBlockV3, valProposerConfig} = opts; + const {useProduceBlockV3 = defaultOptions.useProduceBlockV3, valProposerConfig} = opts; const defaultBuilderSelection = valProposerConfig?.defaultConfig.builder?.selection ?? defaultOptions.builderSelection; const strictFeeRecipientCheck = valProposerConfig?.defaultConfig.strictFeeRecipientCheck ?? false;