From 3b844b310fc7b6691e0206486a425072c0c22868 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:33:52 +0200 Subject: [PATCH] Fix types --- packages/beacon-node/src/chain/forkChoice/index.ts | 3 +-- packages/beacon-node/test/utils/mocks/chain/chain.ts | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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; }