diff --git a/packages/beacon-node/src/chain/forkChoice/index.ts b/packages/beacon-node/src/chain/forkChoice/index.ts index e16a4a6ec90..3e323f23db9 100644 --- a/packages/beacon-node/src/chain/forkChoice/index.ts +++ b/packages/beacon-node/src/chain/forkChoice/index.ts @@ -90,7 +90,6 @@ export function initializeForkChoice( currentSlot ), - opts, - metrics + opts ); } diff --git a/packages/beacon-node/test/utils/mocks/chain/chain.ts b/packages/beacon-node/test/utils/mocks/chain/chain.ts index 9ef15620234..fce2619bfa1 100644 --- a/packages/beacon-node/test/utils/mocks/chain/chain.ts +++ b/packages/beacon-node/test/utils/mocks/chain/chain.ts @@ -197,6 +197,10 @@ export class MockBeaconChain implements IBeaconChain { }; } + recomputeForkChoiceHead(): ProtoBlock { + return this.forkChoice.getHead(); + } + async waitForBlockOfAttestation(): Promise { return false; }