From 282a4e1d88c652c3e08fe0a2294621bc340858eb Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Tue, 16 Jan 2024 20:01:46 +0100 Subject: [PATCH] Disable broadcast validation for unknown block tests --- packages/cli/test/sim/multi_fork.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cli/test/sim/multi_fork.test.ts b/packages/cli/test/sim/multi_fork.test.ts index 0cf07b76da02..24f42498c638 100644 --- a/packages/cli/test/sim/multi_fork.test.ts +++ b/packages/cli/test/sim/multi_fork.test.ts @@ -1,8 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ import path from "node:path"; import {sleep, toHex, toHexString} from "@lodestar/utils"; -import {ApiError} from "@lodestar/api"; -import {SLOTS_PER_EPOCH} from "@lodestar/params"; +import {ApiError, routes} from "@lodestar/api"; import {AssertionMatch, BeaconClient, ExecutionClient, ValidatorClient} from "../utils/simulation/interfaces.js"; import {SimulationEnvironment} from "../utils/simulation/SimulationEnvironment.js"; import {defineSimTestConfig, logFilesDir} from "../utils/simulation/utils/index.js"; @@ -230,7 +229,11 @@ await connectNewNode(unknownBlockSync, env.nodes); await sleep(5000); try { - ApiError.assert(await unknownBlockSync.beacon.api.beacon.publishBlockV2(headForUnknownBlockSync.response.data)); + ApiError.assert( + await unknownBlockSync.beacon.api.beacon.publishBlockV2(headForUnknownBlockSync.response.data, { + broadcastValidation: routes.beacon.BroadcastValidation.none, + }) + ); env.tracker.record({ message: "Publishing unknown block should fail",