Skip to content

Commit

Permalink
Disable broadcast validation for unknown block tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jan 16, 2024
1 parent ea768c8 commit 282a4e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/cli/test/sim/multi_fork.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 282a4e1

Please sign in to comment.