From c5f04dd237377c55afba26369c9ece6117462ead Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Tue, 16 Apr 2024 02:08:41 +0300 Subject: [PATCH] produceBlockV3 call should send `execution_payload_blinded` value as boolean. (#6204) * Fix `execution_payload_blinded` in produceBlockV3 response should be boolean not string. * Address review comments. --- beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim index a4221344ea..7d1fc5e558 100644 --- a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim +++ b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim @@ -3403,10 +3403,7 @@ proc writeValue*(writer: var JsonWriter[RestJson], writer.beginRecord() withForkyMaybeBlindedBlck(value): writer.writeField("version", consensusFork.toString()) - when isBlinded: - writer.writeField("execution_payload_blinded", "true") - else: - writer.writeField("execution_payload_blinded", "false") + writer.writeField("execution_payload_blinded", isBlinded) if value.executionValue.isSome(): writer.writeField("execution_payload_value", $(value.executionValue.get()))