Skip to content

Commit

Permalink
produceBlockV3 call should send execution_payload_blinded value as …
Browse files Browse the repository at this point in the history
…boolean. (#6204)

* Fix `execution_payload_blinded` in produceBlockV3 response should be boolean not string.

* Address review comments.
  • Loading branch information
cheatfate authored Apr 15, 2024
1 parent c57fcb4 commit c5f04dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit c5f04dd

Please sign in to comment.