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.
This commit is contained in:
Eugene Kabanov 2024-04-16 02:08:41 +03:00 committed by GitHub
parent c57fcb426a
commit c5f04dd237
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -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()))