chore: fix build after merge to unstable (#8558)

We need to pass validator count to fork choice since
https://github.com/ChainSafe/lodestar/pull/8549 but that wasn't done in
https://github.com/ChainSafe/lodestar/pull/8527 for
`initializeForkChoiceFromUnfinalizedState` which breaks our code.
This commit is contained in:
Nico Flaig
2025-10-22 21:40:20 +01:00
committed by GitHub
parent 5972216fe2
commit 9dbc67b579

View File

@@ -276,5 +276,13 @@ export function initializeForkChoiceFromUnfinalizedState(
// production code use ForkChoice constructor directly
const forkchoiceConstructor = opts.forkchoiceConstructor ?? ForkChoice;
return new forkchoiceConstructor(config, store, protoArray, metrics, opts, logger);
return new forkchoiceConstructor(
config,
store,
protoArray,
unfinalizedState.validators.length,
metrics,
opts,
logger
);
}