mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-10 08:08:16 -05:00
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:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user