This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,6 @@ type BuilderBlockValidationRequestV3 struct {
204204 RegisteredGasLimit uint64 `json:"registered_gas_limit,string"`
205205}
206206
207- type BuilderBlockValidationResponse struct {
208- BlockValue * uint256.Int `json:"block_value"`
209- }
210-
211207func (r * BuilderBlockValidationRequestV3 ) UnmarshalJSON (data []byte ) error {
212208 params := & struct {
213209 ParentBeaconBlockRoot common.Hash `json:"parent_beacon_block_root"`
@@ -229,6 +225,19 @@ func (r *BuilderBlockValidationRequestV3) UnmarshalJSON(data []byte) error {
229225 return nil
230226}
231227
228+ type BuilderBlockValidationResponse struct {
229+ BlockValue * uint256.Int
230+ }
231+
232+ func (r * BuilderBlockValidationResponse ) MarshalJSON () ([]byte , error ) {
233+ type validationResponseJSON struct {
234+ BlockValue string `json:"block_value"`
235+ }
236+ return json .Marshal (& validationResponseJSON {
237+ BlockValue : fmt .Sprintf ("%d" , r .BlockValue ),
238+ })
239+ }
240+
232241func (api * BlockValidationAPI ) ValidateBuilderSubmissionV3 (params * BuilderBlockValidationRequestV3 ) (* BuilderBlockValidationResponse , error ) {
233242 // TODO: fuzztest, make sure the validation is sound
234243 payload := params .ExecutionPayload
You can’t perform that action at this time.
0 commit comments