From a94d252aebe93644095789589058376db23d51a0 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 15 Jul 2024 20:17:04 +0100 Subject: [PATCH] Fix assertion --- packages/beacon-node/src/api/rest/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/src/api/rest/base.ts b/packages/beacon-node/src/api/rest/base.ts index b0ea95ad2735..4f5d9284f91b 100644 --- a/packages/beacon-node/src/api/rest/base.ts +++ b/packages/beacon-node/src/api/rest/base.ts @@ -99,7 +99,7 @@ export class RestApiServer { // See https://github.com/attestantio/go-eth2-client/issues/144 if ( // go-eth2-client supports handling SSZ data in response for these endpoints - ["produceBlindedBlock", "produceBlockV3", "getBlockV2", "getStateV2"].includes(operationId) && + !["produceBlindedBlock", "produceBlockV3", "getBlockV2", "getStateV2"].includes(operationId) && // Only Vouch seems to override default header ["Go-http-client", "Vouch"].includes(req.headers["user-agent"]?.split("/")[0] ?? "") ) {